From 280199e32d8843c56229f306cc7656a71510f16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Gardstr=C3=B6m?= Date: Thu, 7 Apr 2022 19:52:19 +0200 Subject: [PATCH] satisfy clippy --- src/docker.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/docker.rs b/src/docker.rs index e2f1170ee..e1e90f965 100644 --- a/src/docker.rs +++ b/src/docker.rs @@ -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 { let host_path = file::canonicalize(&val).wrap_err_with(|| format!("when canonicalizing path `{val:?}`"))?; @@ -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"))] {