We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5f98c8 commit 17904c1Copy full SHA for 17904c1
src/cli/self_update.rs
@@ -782,7 +782,9 @@ fn _install_selection<'a>(
782
}
783
writeln!(process().stdout())?;
784
None
785
- } else if user_specified_something || cfg.find_default()?.is_none() {
+ } else if user_specified_something
786
+ || (update_existing_toolchain && cfg.find_default()?.is_none())
787
+ {
788
Some(match toolchain_opt {
789
Some(s) => cfg.get_toolchain(s, false)?,
790
None => match cfg.find_default()? {
@@ -1104,7 +1106,7 @@ mod test {
1104
1106
None, // No toolchain specified
1105
1107
"default", // default profile
1108
None,
- false,
1109
+ true,
1110
&[],
1111
1112
)
0 commit comments