summaryrefslogtreecommitdiffstats
path: root/examples/toast
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/toast
parent93416cbebd1dad04d250bc39ee7db9482d1e5e72 (diff)
downloadiced-f98627a317615151681ca8b324052eb4a170b789.tar.gz
iced-f98627a317615151681ca8b324052eb4a170b789.tar.bz2
iced-f98627a317615151681ca8b324052eb4a170b789.zip
Add missing `'static` lifetimes to constant slices
Diffstat (limited to 'examples/toast')
-rw-r--r--examples/toast/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/toast/src/main.rs b/examples/toast/src/main.rs
index 20c3dd42..5b089e8a 100644
--- a/examples/toast/src/main.rs
+++ b/examples/toast/src/main.rs
@@ -210,7 +210,7 @@ mod toast {
}
impl Status {
- pub const ALL: &[Self] =
+ pub const ALL: &'static [Self] =
&[Self::Primary, Self::Secondary, Self::Success, Self::Danger];
}