summaryrefslogtreecommitdiffstats
path: root/examples/modal
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-12 03:40:32 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-12 03:40:32 +0100
commitf98627a317615151681ca8b324052eb4a170b789 (patch)
tree4785e31c80f4c82302c65fd0403e18a06ea2d0fb /examples/modal
parent93416cbebd1dad04d250bc39ee7db9482d1e5e72 (diff)
downloadiced-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.rs3
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 {