diff --git a/libimagstore/src/storeid.rs b/libimagstore/src/storeid.rs index f083a65c..a22cbf6d 100644 --- a/libimagstore/src/storeid.rs +++ b/libimagstore/src/storeid.rs @@ -121,6 +121,12 @@ impl IntoStoreId for StoreId { } } +impl IntoStoreId for PathBuf { + fn into_storeid(self) -> Result { + StoreId::new_baseless(self) + } +} + #[macro_export] macro_rules! module_entry_path_mod { ($name:expr, $version:expr) => (