Add missing 'static lifetimes to constant slices
This commit is contained in:
parent
93416cbebd
commit
f98627a317
4 changed files with 5 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ enum Color {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Color {
|
impl Color {
|
||||||
const ALL: &[Color] = &[
|
const ALL: &'static [Color] = &[
|
||||||
Color::Black,
|
Color::Black,
|
||||||
Color::Red,
|
Color::Red,
|
||||||
Color::Orange,
|
Color::Orange,
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,8 @@ enum Plan {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl 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 {
|
impl fmt::Display for Plan {
|
||||||
|
|
|
||||||
|
|
@ -210,7 +210,7 @@ mod toast {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Status {
|
impl Status {
|
||||||
pub const ALL: &[Self] =
|
pub const ALL: &'static [Self] =
|
||||||
&[Self::Primary, Self::Secondary, Self::Success, Self::Danger];
|
&[Self::Primary, Self::Secondary, Self::Success, Self::Danger];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ pub enum Theme {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Theme {
|
impl Theme {
|
||||||
pub const ALL: &[Self] = &[
|
pub const ALL: &'static [Self] = &[
|
||||||
Self::SolarizedDark,
|
Self::SolarizedDark,
|
||||||
Self::Base16Mocha,
|
Self::Base16Mocha,
|
||||||
Self::Base16Ocean,
|
Self::Base16Ocean,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue