summaryrefslogtreecommitdiffstats
path: root/web/src/widget
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/widget')
-rw-r--r--web/src/widget/image.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/src/widget/image.rs b/web/src/widget/image.rs
index 4296d0e2..029ab352 100644
--- a/web/src/widget/image.rs
+++ b/web/src/widget/image.rs
@@ -140,6 +140,12 @@ 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 {
Handle::from_path(path)