diff options
author | 2023-11-12 03:40:32 +0100 | |
---|---|---|
committer | 2023-11-12 03:40:32 +0100 | |
commit | f98627a317615151681ca8b324052eb4a170b789 (patch) | |
tree | 4785e31c80f4c82302c65fd0403e18a06ea2d0fb /examples/modal | |
parent | 93416cbebd1dad04d250bc39ee7db9482d1e5e72 (diff) | |
download | iced-f98627a317615151681ca8b324052eb4a170b789.tar.gz iced-f98627a317615151681ca8b324052eb4a170b789.tar.bz2 iced-f98627a317615151681ca8b324052eb4a170b789.zip |
Add missing `'static` lifetimes to constant slices
Diffstat (limited to 'examples/modal')
-rw-r--r-- | examples/modal/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs index b0e2c81b..3b69f5e6 100644 --- a/examples/modal/src/main.rs +++ b/examples/modal/src/main.rs @@ -205,7 +205,8 @@ enum Plan { } impl Plan { - pub const ALL: &[Self] = &[Self::Basic, Self::Pro, Self::Enterprise]; + pub const ALL: &'static [Self] = + &[Self::Basic, Self::Pro, Self::Enterprise]; } impl fmt::Display for Plan { |