From f5e070cdf6628a5ebd981d373929802317104e24 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Wed, 4 Sep 2024 09:56:42 +0200 Subject: clippy --fix --- src/commands/io.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commands/io.rs') diff --git a/src/commands/io.rs b/src/commands/io.rs index 8e44b2b..1d17f7c 100644 --- a/src/commands/io.rs +++ b/src/commands/io.rs @@ -48,13 +48,13 @@ impl ExportList { let mut dl_folder = None; if download { - dl_folder = Some(list.download_folder) + dl_folder = Some(list.download_folder); }; let mods = userlist_get_all_ids(config, list_id)?; let mut versions = vec![]; for m in mods { - versions.push(ExportVersion::from(config, list_id, &m)?) + versions.push(ExportVersion::from(config, list_id, &m)?); } Ok(Self { @@ -80,7 +80,7 @@ pub fn export(config: &Cfg, list: Option) -> MLE<()> { let mut lists: Vec = vec![]; for list_id in list_ids { - progress.set_message(format!("Export {}", list_id)); + progress.set_message(format!("Export {list_id}")); //TODO download option/ new download on import lists.push(ExportList::from(config, &list_id, true)?); } @@ -97,7 +97,7 @@ pub fn export(config: &Cfg, list: Option) -> MLE<()> { progress.set_message("Create file"); let mut file = File::create(&filestr)?; file.write_all(toml.as_bytes())?; - progress.finish_with_message(format!("Exported to {}", filestr)); + progress.finish_with_message(format!("Exported to {filestr}")); Ok(()) } -- cgit v1.2.3