diff --git a/native/src/widget/svg.rs b/native/src/widget/svg.rs index 063730bb..b899da1e 100644 --- a/native/src/widget/svg.rs +++ b/native/src/widget/svg.rs @@ -147,14 +147,11 @@ impl Handle { } } -impl From for Handle { - fn from(path: String) -> Handle { - Handle::from_path(path) - } -} - -impl From<&str> for Handle { - fn from(path: &str) -> Handle { +impl From for Handle +where + T: Into, +{ + fn from(path: T) -> Handle { Handle::from_path(path) } }