Skip to content

Commit

Permalink
satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed May 26, 2022
1 parent 9846c96 commit 280199e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pub fn register(target: &Target, verbose: bool) -> Result<()> {
.run(verbose)
}

#[allow(unused_variables)]
pub fn mount(cmd: &mut Command, val: &Path, verbose: bool) -> Result<PathBuf> {
let host_path =
file::canonicalize(&val).wrap_err_with(|| format!("when canonicalizing path `{val:?}`"))?;
Expand Down Expand Up @@ -128,7 +129,7 @@ pub fn run(
#[cfg(target_os = "windows")]
{
// On Windows, we can not mount the directory name directly. Instead, we use wslpath to convert the path to a linux compatible path.
mount_cwd = wslpath(&cwd, verbose)?;
mount_cwd = wslpath(cwd, verbose)?;
}
#[cfg(not(target_os = "windows"))]
{
Expand Down

0 comments on commit 280199e

Please sign in to comment.