Icons: fix warning when building icons

This commit is contained in:
Cecile Tonglet 2023-11-28 10:09:36 +01:00
parent 848204863c
commit c6c19f0241
2 changed files with 2 additions and 2 deletions

View file

@ -1685,7 +1685,7 @@ Custom(Html),
} }
impl Icon { impl Icon {
pub const ALL: &[Icon] = &[ pub const ALL: &'static [Icon] = &[
Icon::Add, Icon::Add,
Icon::AddClip, Icon::AddClip,
Icon::AddColumnLeft, Icon::AddColumnLeft,

View file

@ -60,7 +60,7 @@ pub(crate) fn generate_icons() -> Result<()> {
src.push_str("}\n\n"); src.push_str("}\n\n");
src.push_str("impl Icon {\n"); src.push_str("impl Icon {\n");
src.push_str("pub const ALL: &[Icon] = &[\n"); src.push_str("pub const ALL: &'static [Icon] = &[\n");
for icon in keys { for icon in keys {
src.push_str("Icon::"); src.push_str("Icon::");
src.push_str(icon); src.push_str(icon);