Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ async fn check_updates(cfg: &Cfg<'_>, opts: CheckOpts) -> Result<ExitCode> {
// Help avoid flickering by moving the cursor instead of clearing the line.
multi_progress_bars.set_move_cursor(true);
let semaphore = Arc::new(Semaphore::new(concurrent_downloads));
let channels = tokio_stream::iter(channels.into_iter()).map(|(name, distributable)| {
let channels = tokio_stream::iter(channels).map(|(name, distributable)| {
let msg = format!("{bold}{name} - {bold:#}");
let status = "Checking...";
let template = format!(
Expand Down Expand Up @@ -1582,8 +1582,8 @@ fn override_remove(cfg: &Cfg<'_>, path: Option<&Path>, nonexistent: bool) -> Res
let paths = if nonexistent {
let list: Vec<_> = cfg.settings_file.with(|s| {
Ok(s.overrides
.iter()
.filter_map(|(k, _)| {
.keys()
.filter_map(|k| {
let path = Path::new(k);
(!path.is_dir()).then(|| path.to_owned())
})
Expand Down
Loading