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 {
|
||||
const ALL: &[Color] = &[
|
||||
const ALL: &'static [Color] = &[
|
||||
Color::Black,
|
||||
Color::Red,
|
||||
Color::Orange,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue