summaryrefslogtreecommitdiffstats
path: root/src/cmd/sync.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-12-22 03:32:32 -0500
committerJesse Luehrs <doy@tozt.net>2018-12-22 03:32:32 -0500
commitbb860c9777d971a72e685148c6c1b2cdc13b3e0b (patch)
tree757a16d36076002d05ee9c9a12bfa594f351eb2f /src/cmd/sync.rs
parent144a829d82db142d1f6ae76adf49dddd77751428 (diff)
downloadlastfm-query-bb860c9777d971a72e685148c6c1b2cdc13b3e0b.tar.gz
lastfm-query-bb860c9777d971a72e685148c6c1b2cdc13b3e0b.zip
cargo clippy
Diffstat (limited to 'src/cmd/sync.rs')
-rw-r--r--src/cmd/sync.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/sync.rs b/src/cmd/sync.rs
index b6019c4..2d5b25b 100644
--- a/src/cmd/sync.rs
+++ b/src/cmd/sync.rs
@@ -35,8 +35,8 @@ impl super::Command for Command {
let to_fetch = lastfm.track_count(from)?;
if to_fetch > 0 {
- let bar = indicatif::ProgressBar::new(to_fetch);
- bar.set_style(
+ let pbar = indicatif::ProgressBar::new(to_fetch);
+ pbar.set_style(
indicatif::ProgressStyle::default_bar()
.progress_chars("=> ")
.template(
@@ -45,9 +45,9 @@ impl super::Command for Command {
),
);
- db.insert_tracks(bar.wrap_iter(lastfm.tracks(from)))?;
+ db.insert_tracks(pbar.wrap_iter(lastfm.tracks(from)))?;
- bar.finish_with_message("done");
+ pbar.finish_with_message("done");
}
Ok(())