From 4c6dc8ff820793906602570d4ba0e0a98d211cd3 Mon Sep 17 00:00:00 2001 From: Nils <52573120+niStee@users.noreply.github.com> Date: Sun, 28 Sep 2025 19:35:18 +0200 Subject: [PATCH] Fix WSL distribution name cleanup (#1348) --- 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 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()) }