summaryrefslogtreecommitdiff
path: root/src/files.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/files.rs
parent1d64516ed95266a4fc1f8a18652f99158a4004f1 (diff)
downloadmodlist-f5e070cdf6628a5ebd981d373929802317104e24.tar
modlist-f5e070cdf6628a5ebd981d373929802317104e24.tar.gz
modlist-f5e070cdf6628a5ebd981d373929802317104e24.zip
clippy --fix
Diffstat (limited to 'src/files.rs')
-rw-r--r--src/files.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/files.rs b/src/files.rs
index 3a16c62..bf5a0a0 100644
--- a/src/files.rs
+++ b/src/files.rs
@@ -55,7 +55,7 @@ pub async fn download_versions(
55 } 55 }
56 56
57 while js.join_next().await.is_some() { 57 while js.join_next().await.is_some() {
58 all.inc(1) 58 all.inc(1);
59 } 59 }
60 60
61 all.finish_with_message(format!("✓Downloading {}", list.id)); 61 all.finish_with_message(format!("✓Downloading {}", list.id));
@@ -128,7 +128,7 @@ async fn download_file(
128 name: &str, 128 name: &str,
129 progress: &ProgressBar, 129 progress: &ProgressBar,
130) -> MLE<()> { 130) -> MLE<()> {
131 let dl_path_file = format!("{}/{}", path, name); 131 let dl_path_file = format!("{path}/{name}");
132 let res = Client::new().get(url).send().await?; 132 let res = Client::new().get(url).send().await?;
133 133
134 let size = res.content_length().expect("Couldn't get content length"); 134 let size = res.content_length().expect("Couldn't get content length");
@@ -169,7 +169,7 @@ pub fn disable_version(
169 mod_id: String, 169 mod_id: String,
170) -> MLE<()> { 170) -> MLE<()> {
171 let file = get_file_path(&current_list, String::from(&versionid))?; 171 let file = get_file_path(&current_list, String::from(&versionid))?;
172 let disabled = format!("{}.disabled", file); 172 let disabled = format!("{file}.disabled");
173 173
174 rename(file, disabled)?; 174 rename(file, disabled)?;
175 175