summaryrefslogtreecommitdiffstats
path: root/src/cmd/sync.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-12-22 02:59:15 -0500
committerJesse Luehrs <doy@tozt.net>2018-12-22 02:59:15 -0500
commit144a829d82db142d1f6ae76adf49dddd77751428 (patch)
treec01b7833107d3eb916a2e530e15042673dbf62aa /src/cmd/sync.rs
parentc22141ea46b406003eb889a8408d9b87e6b488fa (diff)
downloadlastfm-query-144a829d82db142d1f6ae76adf49dddd77751428.tar.gz
lastfm-query-144a829d82db142d1f6ae76adf49dddd77751428.zip
cargo fmt
Diffstat (limited to 'src/cmd/sync.rs')
-rw-r--r--src/cmd/sync.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/sync.rs b/src/cmd/sync.rs
index 99e39f7..b6019c4 100644
--- a/src/cmd/sync.rs
+++ b/src/cmd/sync.rs
@@ -14,7 +14,7 @@ pub fn subcommand<'a, 'b>() -> clap::App<'a, 'b> {
.arg(
clap::Arg::with_name("username")
.required(true)
- .help("last.fm username to fetch tracks for")
+ .help("last.fm username to fetch tracks for"),
)
}
@@ -39,7 +39,10 @@ impl super::Command for Command {
bar.set_style(
indicatif::ProgressStyle::default_bar()
.progress_chars("=> ")
- .template("Downloading {pos}/{len} tracks...\n{percent:>3}% [{wide_bar}] {eta:5}")
+ .template(
+ "Downloading {pos}/{len} tracks...\n\
+ {percent:>3}% [{wide_bar}] {eta:5}",
+ ),
);
db.insert_tracks(bar.wrap_iter(lastfm.tracks(from)))?;