diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-12-16 17:41:56 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-12-16 17:41:56 +0100 |
commit | 14d82baba4ebb82df28c2d4e9517f8c3a81d8f6c (patch) | |
tree | b3884d3da5c581c145678ce83b62f21657f50bc3 /nix-rust/src/c.rs | |
parent | 410acd29c046ae7296d882ee4750441d4ff29955 (diff) |
StorePath::new(): Check store directory
Diffstat (limited to 'nix-rust/src/c.rs')
-rw-r--r-- | nix-rust/src/c.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nix-rust/src/c.rs b/nix-rust/src/c.rs index e0462742f..8d2507d37 100644 --- a/nix-rust/src/c.rs +++ b/nix-rust/src/c.rs @@ -34,7 +34,8 @@ pub extern "C" fn ffi_StorePath_new( path: &str, store_dir: &str, ) -> Result<StorePath, error::CppException> { - StorePath::new(std::path::Path::new(path), store_dir).map_err(|err| err.into()) + StorePath::new(std::path::Path::new(path), std::path::Path::new(store_dir)) + .map_err(|err| err.into()) } #[no_mangle] |