diff --git a/crates/ui/src/icon.rs b/crates/ui/src/icon.rs index ff4d56ce..43e2d7d3 100644 --- a/crates/ui/src/icon.rs +++ b/crates/ui/src/icon.rs @@ -117,7 +117,8 @@ impl Clone for Icon { } impl Icon { - pub fn new(name: IconName) -> Self { + pub fn new(name: impl Into) -> Self { + let name: IconName = name.into(); Self::default().path(name.path()) }