diff options
Diffstat (limited to 'zone_core/src/lib.rs')
-rw-r--r-- | zone_core/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zone_core/src/lib.rs b/zone_core/src/lib.rs index 14f6755..db99cfa 100644 --- a/zone_core/src/lib.rs +++ b/zone_core/src/lib.rs @@ -92,7 +92,7 @@ impl TryFrom<FileSystem> for Container { type Error = zone_zfs::Error; fn try_from(file_system: FileSystem) -> Result<Self, Self::Error> { - let path_buf = PathBuf::from(&file_system) + let path_buf = PathBuf::from(file_system.dataset()) .file_name() .ok_or_else(|| { Self::Error::FileSystem(format!("Invalid FileSystem path: {:?}", file_system)) @@ -108,7 +108,7 @@ impl TryFrom<FileSystem> for Container { Self::Error::FileSystem(format!("Failed to parse container ID: {:?}", err)) })?; - let template = PathBuf::from(&file_system) + let template = PathBuf::from(file_system.dataset()) .parent() .ok_or_else(|| { Self::Error::FileSystem(format!("Invalid path for filesystem: {:?}", &file_system)) |