diff options
Diffstat (limited to '')
| -rw-r--r-- | native/src/widget/svg.rs | 13 | 
1 files changed, 5 insertions, 8 deletions
| 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<String> for Handle { -    fn from(path: String) -> Handle { -        Handle::from_path(path) -    } -} - -impl From<&str> for Handle { -    fn from(path: &str) -> Handle { +impl<T> From<T> for Handle +where +    T: Into<PathBuf>, +{ +    fn from(path: T) -> Handle {          Handle::from_path(path)      }  } | 
