From 5cf732957ccb8bcce23b0315a0be800013f10197 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 26 Nov 2025 22:28:34 -0500 Subject: [PATCH] `Clone` for `StorePath` This will be tested once we get the harmonia bindings in. --- nix-bindings-store/src/path.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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 {