diff options
Diffstat (limited to 'src/unistd.rs')
-rw-r--r-- | src/unistd.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index 47eb667a..a54bba3a 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -361,7 +361,7 @@ mod linux { use {NixError, NixResult, NixPath}; pub fn pivot_root<P1: ?Sized + NixPath, P2: ?Sized + NixPath>( - new_root: P1, put_old: P2) -> NixResult<()> { + new_root: &P1, put_old: &P2) -> NixResult<()> { let res = try!(try!(new_root.with_nix_path(|new_root| { put_old.with_nix_path(|put_old| { unsafe { |