Skip to content

Commit 7860d47

Browse files
committed
satisfy clippy
1 parent 4cc5af7 commit 7860d47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/docker.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ pub fn register(target: &Target, verbose: bool) -> Result<()> {
5252
.run(verbose)
5353
}
5454

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

0 commit comments

Comments
 (0)