rust-unofficial / patterns

A catalogue of Rust design patterns, anti-patterns and idioms
https://rust-unofficial.github.io/patterns/
Mozilla Public License 2.0
7.98k stars 363 forks source link

Show call of default() #93

Closed kellerkindt closed 4 years ago

kellerkindt commented 4 years ago

The code lacks an example call with default(). It might not be completely clear to a Rust beginner, what the #[derive(Default)] actually enabled.

lambda-fairy commented 4 years ago

Thanks!