From bb860c9777d971a72e685148c6c1b2cdc13b3e0b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 22 Dec 2018 03:32:32 -0500 Subject: cargo clippy --- src/cmd/sync.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cmd/sync.rs') 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(()) -- cgit v1.2.3-54-g00ecf