summaryrefslogtreecommitdiff
path: root/src/commands/io.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2024-09-04 09:56:42 +0200
committerfxqnlr <[email protected]>2024-09-04 09:56:42 +0200
commitf5e070cdf6628a5ebd981d373929802317104e24 (patch)
treee31c88371737e20b2cc79bf9ee0c1dbfdeb6e727 /src/commands/io.rs
parent1d64516ed95266a4fc1f8a18652f99158a4004f1 (diff)
downloadmodlist-f5e070cdf6628a5ebd981d373929802317104e24.tar
modlist-f5e070cdf6628a5ebd981d373929802317104e24.tar.gz
modlist-f5e070cdf6628a5ebd981d373929802317104e24.zip
clippy --fix
Diffstat (limited to 'src/commands/io.rs')
-rw-r--r--src/commands/io.rs8
1 files changed, 4 insertions, 4 deletions
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 {
48 48
49 let mut dl_folder = None; 49 let mut dl_folder = None;
50 if download { 50 if download {
51 dl_folder = Some(list.download_folder) 51 dl_folder = Some(list.download_folder);
52 }; 52 };
53 53
54 let mods = userlist_get_all_ids(config, list_id)?; 54 let mods = userlist_get_all_ids(config, list_id)?;
55 let mut versions = vec![]; 55 let mut versions = vec![];
56 for m in mods { 56 for m in mods {
57 versions.push(ExportVersion::from(config, list_id, &m)?) 57 versions.push(ExportVersion::from(config, list_id, &m)?);
58 } 58 }
59 59
60 Ok(Self { 60 Ok(Self {
@@ -80,7 +80,7 @@ pub fn export(config: &Cfg, list: Option<String>) -> MLE<()> {
80 80
81 let mut lists: Vec<ExportList> = vec![]; 81 let mut lists: Vec<ExportList> = vec![];
82 for list_id in list_ids { 82 for list_id in list_ids {
83 progress.set_message(format!("Export {}", list_id)); 83 progress.set_message(format!("Export {list_id}"));
84 //TODO download option/ new download on import 84 //TODO download option/ new download on import
85 lists.push(ExportList::from(config, &list_id, true)?); 85 lists.push(ExportList::from(config, &list_id, true)?);
86 } 86 }
@@ -97,7 +97,7 @@ pub fn export(config: &Cfg, list: Option<String>) -> MLE<()> {
97 progress.set_message("Create file"); 97 progress.set_message("Create file");
98 let mut file = File::create(&filestr)?; 98 let mut file = File::create(&filestr)?;
99 file.write_all(toml.as_bytes())?; 99 file.write_all(toml.as_bytes())?;
100 progress.finish_with_message(format!("Exported to {}", filestr)); 100 progress.finish_with_message(format!("Exported to {filestr}"));
101 101
102 Ok(()) 102 Ok(())
103} 103}