mirror of
https://github.com/yewprint/yewprint
synced 2024-11-25 04:50:20 +00:00
Icons: fix warning when building icons
This commit is contained in:
parent
848204863c
commit
c6c19f0241
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue