Skip to content

Commit 3ea8eac

Browse files
committed
Fix bug with rustup toolchain overrides detailed in https://github.com/kay/cross-toolchain-override-bug
1 parent 5d35b3f commit 3ea8eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn installed_toolchains(verbose: bool) -> Result<Vec<String>> {
2828
.args(&["toolchain", "list"])
2929
.run_and_get_stdout(verbose)?;
3030

31-
Ok(out.lines().map(|l| l.replace(" (default)", "").trim().to_owned()).collect())
31+
Ok(out.lines().map(|l| l.replace(" (default)", "").replace(" (override)", "").trim().to_owned()).collect())
3232
}
3333

3434
pub fn available_targets(toolchain: &str, verbose: bool) -> Result<AvailableTargets> {

0 commit comments

Comments
 (0)