From 7256aaffc820f4ff113832cc93fd4336bc5c5880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sch=C3=B6nauer?= <37108907+DottoDev@users.noreply.github.com> Date: Thu, 3 Nov 2022 19:04:06 +0000 Subject: [PATCH] Resolve clippy errors (#131) * Resolves clippy errors * Fixes clippy errors * Changes get_wsl_distributions arguments from pointer to value --- src/steps/os/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/os/windows.rs b/src/steps/os/windows.rs index fdebcff1..02d4c55f 100644 --- a/src/steps/os/windows.rs +++ b/src/steps/os/windows.rs @@ -65,7 +65,7 @@ pub fn run_scoop(cleanup: bool, run_type: RunType) -> Result<()> { Ok(()) } -fn get_wsl_distributions(wsl: &Path) -> Result> { +fn get_wsl_distributions(wsl: Path) -> Result> { let output = Command::new(wsl).args(["--list", "-q"]).check_output()?; Ok(output .lines()