diff options
Diffstat (limited to 'examples/lazy/src/main.rs')
-rw-r--r-- | examples/lazy/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/lazy/src/main.rs b/examples/lazy/src/main.rs index c6baa6a1..01560598 100644 --- a/examples/lazy/src/main.rs +++ b/examples/lazy/src/main.rs @@ -27,7 +27,7 @@ impl Default for App { .into_iter() .map(From::from) .collect(), - input: Default::default(), + input: String::default(), order: Order::Ascending, } } @@ -46,7 +46,7 @@ enum Color { } impl Color { - const ALL: &[Color] = &[ + const ALL: &'static [Color] = &[ Color::Black, Color::Red, Color::Orange, @@ -107,7 +107,7 @@ impl From<&str> for Item { fn from(s: &str) -> Self { Self { name: s.to_owned(), - color: Default::default(), + color: Color::default(), } } } |