Skip to content

Commit

Permalink
fix: compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
llenotre committed May 21, 2024
1 parent 3388075 commit 3b5230c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fn network_not_enabled() {
///
/// If the environment's lockfile cannot be acquired, the function returns an error.
fn get_env(sysroot: PathBuf) -> Result<Environment> {
Environment::with_root(sysroot)?.ok_or(anyhow!("failed to acquire lockfile"))
Environment::with_root(&sysroot)?.ok_or(anyhow!("failed to acquire lockfile"))
}

/// Lists remotes.
Expand Down
2 changes: 1 addition & 1 deletion common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl Environment {
let Ok(path) = path.strip_prefix("data/") else {
continue;
};
let dst = self.sysroot.join(&path);
let dst = self.sysroot.join(path);
// Create parent directories
if let Some(parent) = dst.parent() {
fs::create_dir_all(parent)?;
Expand Down

0 comments on commit 3b5230c

Please sign in to comment.