Commit Graph

10 Commits

Author SHA1 Message Date
Riley Shea
4017a73d62
Fix default idiom example (#134)
Before this change, the example code doesn't run on the current rust stable release(1.49).
This is because `Path` inherently has a u8 that requires the sized trait which requires either statics or replacing Path with PathBuf.

After this change, the example code will run "as-is" without warnings or errors.
2021-01-03 08:44:31 +01:00
simonsan
b6e5414941
Add doc tests to CI (#124)
* rename baz() into main() and vice versa where applicable

Fixes #49
2021-01-02 12:40:52 +01:00
kellerkindt
5ebfc0cdc5
Show call of default() 2020-03-05 11:28:58 +01: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
Andre Bogus
48a41e8eda fix small code mistake 2017-01-03 06:52:35 +01:00
Andre Bogus
53b35444b6 new idiom: Default trait 2016-12-31 14:56:54 +01:00