Impl IntoStoreId for PathBuf, using StoreId::new_baseless()

This commit is contained in:
Matthias Beyer 2016-08-26 12:18:00 +02:00
parent 17dbb1da29
commit fedb75ec98

View file

@ -121,6 +121,12 @@ impl IntoStoreId for StoreId {
} }
} }
impl IntoStoreId for PathBuf {
fn into_storeid(self) -> Result<StoreId> {
StoreId::new_baseless(self)
}
}
#[macro_export] #[macro_export]
macro_rules! module_entry_path_mod { macro_rules! module_entry_path_mod {
($name:expr, $version:expr) => ( ($name:expr, $version:expr) => (