Commit Graph

89 Commits

Author SHA1 Message Date
lzutao
82439a6a82
Mark entry pattern as boilerplate 2019-01-26 21:01:41 +07:00
Chris Wong
33fc597e7e
Merge pull request #77 from rivertam/patch-1
Add reference to `derive_builder`
2018-12-22 21:12:38 +13:00
Ben Berman
436df362f4
Add reference to derive_builder 2018-12-19 17:35:31 -05:00
Chris Wong
efa8de654a
Merge pull request #76 from arnavb/patch-1
Fix a slight typo
2018-12-15 10:55:26 +13:00
Arnav Borborah
4ab5a61eb5
Fix a slight typo 2018-12-14 15:27:48 -05:00
Chris Wong
45ad4031e9
Merge pull request #71 from behnam/patch-1
Update deny-warnings.md
2018-09-09 17:59:15 +12:00
Behnam Esfahbod ❄
51d02c6f94
Update deny-warnings.md
Update doc/reference link
2018-09-08 19:03:28 -07:00
Nick Cameron
08a0d04827
Merge pull request #66 from xftroxgpx/patch-1
add 2 links for Command and Child in builder pattern
2018-01-29 10:13:05 +11:00
Emanuel Czirai
3b8662e0dc
long lines alignment, inside the .md 2018-01-27 22:57:37 +01:00
Emanuel Czirai
ddc96e410b
add 2 links for Command and Child in builder pattern 2018-01-27 22:53:14 +01:00
Nick Cameron
3dc43df979
Merge pull request #65 from skletsun/patch-1
Update ctor.md
2017-12-27 13:30:23 +13:00
Sergey Kletsun
7c97e15988
Update ctor.md
Tiny spelling correction
2017-12-26 11:47:39 +02:00
Nick Cameron
f6acf267bf
Merge pull request #48 from llogiq/default
new idiom: Default trait
2017-12-06 15:54:28 +13:00
Nick Cameron
ea7e6e7bb8
Merge pull request #63 from dubek/patch-1
idioms/option-iter: Fix typo in `extend` example
2017-11-29 08:11:48 +13:00
Dov Murik
d4f20a9851
option-iter: Fix typo in extend example 2017-11-28 11:11:23 +02:00
Nick Cameron
8d189fdf04 Merge pull request #57 from stephendavidmarsh/patch-1
Fix broken link to RAII
2017-05-22 12:35:00 +12:00
Stephen Marsh
6c8bfc0e38 Fix broken link to RAII 2017-05-21 20:31:23 -04:00
Alexander Mescheryakov
ac98925a6b fixed link to "Builders" (#56) 2017-05-18 07:52:07 +12:00
Andre Bogus
95c96dd379 fix doc links 2017-02-17 05:03:05 +01:00
Andre Bogus
c0b541d6af added derive(new) link 2017-02-16 08:50:43 +01:00
Andre Bogus
65492bc7b2 more default vs. constructor distinction 2017-02-15 18:35:24 +01:00
Andre Bogus
ad1c9ee228 lowercase 'constructor' 2017-02-15 09:16:26 +01:00
Andre Bogus
8be913e83c use a configuration-themed example 2017-02-09 09:10:55 +01:00
llogiq
ae8a020766 add links to deny(warnings) antipattern, fix typo (#52) 2017-01-24 08:06:21 +13:00
llogiq
1cca0422ea Deny warnings (#47)
* Add another example to the mem::replace idiom

This fixes #38

* New anti-pattern: deny-warnings

* added deprecated link

* fix link title, add explanation why not deprecated

* incorporated hints from lfairy
2017-01-04 13:14:03 +13:00
Chris Wong
3b37252718 Merge pull request #45 from llogiq/fix-38
Add another example to the mem::replace idiom
2017-01-04 11:29:16 +13:00
Andre Bogus
48a41e8eda fix small code mistake 2017-01-03 06:52:35 +01:00
Andre Bogus
964dd9932b Added comment to explain second example 2017-01-01 05:26:33 +01:00
Andre Bogus
53b35444b6 new idiom: Default trait 2016-12-31 14:56:54 +01:00
Andre Bogus
d827cec092 Add another example to the mem::replace idiom
This fixes #38
2016-12-18 21:24:30 +01:00
Nick Cameron
67870c809f Merge pull request #30 from lfairy/small-crates
Prefer small crates
2016-10-25 08:27:36 +13:00
Chris Wong
bfd4b5c9b5 Address feedback from @nrc 2016-10-22 17:58:47 +13:00
Chris Wong
3c68655fab Merge pull request #40 from diwic/patch-1
Change "".to_string() to String::new()
2016-10-12 19:53:39 +13:00
diwic
5f484ad473 Change "".to_string() to String::new()
I mistakenly lost this change in my previous pull request, sorry!
2016-10-12 08:50:29 +02:00
Chris Wong
9d955043a4 Merge pull request #33 from partim/take-for-replace
Mention Option::take() as an alternative to mem::replace()
2016-10-10 21:58:42 +13:00
Martin Hoffmann
9fd6a8f9cf Fix language. 2016-10-10 10:52:57 +02:00
David Henningsson
3bec875bdc Merge remote-tracking branch 'dd/patch-1'
Conflicts:
	idioms/mem-replace.md
2016-10-10 08:10:49 +02:00
Nick Cameron
e5c792eb69 Merge pull request #37 from hoodie/master
fixed highlighting
2016-10-10 11:25:10 +13:00
Hendrik Sollich
41fa4d556a fixed highlighting 2016-10-10 00:18:32 +02:00
Chris Wong
26e27cd307 Merge pull request #32 from xfix/patch-1
Prepending _ to field name avoids unused field warning
2016-10-10 09:20:06 +13:00
Nick Cameron
283e410d0b Merge pull request #34 from CasualX/master
Fix a few nits.
2016-10-10 09:08:59 +13:00
diwic
490fb34bb2 Improve mem-replace example
Submitting a PR as suggested by llogiq [here](https://www.reddit.com/r/rust/comments/56l2pk/an_underused_idiom_memreplace_to_avoid_clones/d8kksx6)
2016-10-09 19:47:44 +02:00
CasualX
69de2351f2 Fix a few nits with the replace idiom.
Change the match guard to be part of the pattern.

Change `"".to_string()` to a more idiomatic `String::new()` to create a new `String` without memory allocation.
2016-10-09 15:35:57 +02:00
Martin Hoffmann
618a65c337 Mention Option::take() as an alternative to mem::replace() 2016-10-09 13:39:26 +02:00
Konrad Borowski
6af4003b88 Prepending _ to field name avoids unused field warning 2016-10-09 12:51:01 +02:00
Christopher
9b289ac6fc Merge pull request #31 from llogiq/mem-replace
new idiom: mem::replace
2016-10-08 12:19:44 -05:00
Andre Bogus
547ff18605 Adressed comments 2016-10-08 19:14:05 +02:00
Andre Bogus
31b282ad9f new idiom: mem::replace 2016-10-08 08:51:31 +02:00
Chris Wong
8a94ebc253 Replace "png" with "num_cpus" 2016-10-05 19:34:12 +13:00
Nick Cameron
3d748b1adc Merge pull request #25 from lfairy/option-list
Add "Treating Option like a list"
2016-09-30 09:37:10 +13:00