diff --git a/src/steps/os/windows.rs b/src/steps/os/windows.rs index 7aba8792..f228930a 100644 --- a/src/steps/os/windows.rs +++ b/src/steps/os/windows.rs @@ -122,8 +122,8 @@ fn get_wsl_distributions(wsl: &Path) -> Result> { let output = Command::new(wsl).args(["--list", "-q"]).output_checked_utf8()?.stdout; Ok(output .lines() + .map(|x| x.replace(['\u{0}', '\r'], "").trim().to_owned()) .filter(|s| !s.is_empty()) - .map(|x| x.replace(['\u{0}', '\r'], "")) .collect()) }