Add missing 'static lifetimes to constant slices

This commit is contained in:
Héctor Ramón Jiménez 2023-11-12 03:40:32 +01:00
parent 93416cbebd
commit f98627a317
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 5 additions and 4 deletions

View file

@ -46,7 +46,7 @@ enum Color {
}
impl Color {
const ALL: &[Color] = &[
const ALL: &'static [Color] = &[
Color::Black,
Color::Red,
Color::Orange,

View file

@ -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 {

View file

@ -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];
}

View file

@ -168,7 +168,7 @@ pub enum Theme {
}
impl Theme {
pub const ALL: &[Self] = &[
pub const ALL: &'static [Self] = &[
Self::SolarizedDark,
Self::Base16Mocha,
Self::Base16Ocean,