diff --git a/nix-bindings-store/src/path.rs b/nix-bindings-store/src/path.rs index d8aea0c..b07bf11 100644 --- a/nix-bindings-store/src/path.rs +++ b/nix-bindings-store/src/path.rs @@ -64,6 +64,13 @@ impl StorePath { self.raw.as_ptr() } } + +impl Clone for StorePath { + fn clone(&self) -> Self { + unsafe { Self::new_raw_clone(self.raw) } + } +} + impl Drop for StorePath { fn drop(&mut self) { unsafe {