diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-05-10 15:18:10 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-05-11 09:13:36 +0200 |
commit | 6ceccb679d9c2d19389c6c6eef792d8db9086f31 (patch) | |
tree | bb0936568c9cba578ebbb8ef34093b30ba134bf1 /src/commands/source.rs | |
parent | 1ebfa387fa5d47e3200b990f63f55bbe36adeff1 (diff) |
Update dependency: indicatif 0.15 -> 0.16
Because the interfaces of indicatif have changed, this PR changes a lot of
calls in the codebase. (Yay, moving all the things!)
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/commands/source.rs')
-rw-r--r-- | src/commands/source.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/source.rs b/src/commands/source.rs index 792c036..55ca1c3 100644 --- a/src/commands/source.rs +++ b/src/commands/source.rs @@ -243,7 +243,7 @@ pub async fn download( .map(|p| { sc.sources_for(p).into_iter().map(|source| { let bar = multi.add(progressbars.spinner()); - bar.set_message(&format!("Downloading {}", source.url())); + bar.set_message(format!("Downloading {}", source.url())); async move { let source_path_exists = source.path().exists(); if !source_path_exists && source.download_manually() { @@ -287,9 +287,9 @@ pub async fn download( bar.inc(bytes.len() as u64); if let Some(len) = response.content_length() { - bar.set_message(&format!("Downloading {} ({}/{} bytes)", source.url(), bytes_written, len)); + bar.set_message(format!("Downloading {} ({}/{} bytes)", source.url(), bytes_written, len)); } else { - bar.set_message(&format!("Downloading {} ({} bytes)", source.url(), bytes_written)); + bar.set_message(format!("Downloading {} ({} bytes)", source.url(), bytes_written)); } } |