From 7bd849199cdd88157aa8f681d7aea83dfc955ccf Mon Sep 17 00:00:00 2001
From: fogarecious <fogarecious@gmail.com>
Date: Sat, 3 Feb 2024 21:28:25 +0100
Subject: Add From<PathBuf> to Svg Handle

---
 core/src/svg.rs | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/core/src/svg.rs b/core/src/svg.rs
index 54e9434e..d63e3c95 100644
--- a/core/src/svg.rs
+++ b/core/src/svg.rs
@@ -50,6 +50,15 @@ impl Handle {
     }
 }
 
+impl<T> From<T> for Handle
+where
+    T: Into<PathBuf>,
+{
+    fn from(path: T) -> Handle {
+        Handle::from_path(path.into())
+    }
+}
+
 impl Hash for Handle {
     fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
         self.id.hash(state);
-- 
cgit