diff options
Diffstat (limited to 'src/files.rs')
-rw-r--r-- | src/files.rs | 6 |
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(¤t_list, String::from(&versionid))?; | 171 | let file = get_file_path(¤t_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 | ||