From f5e070cdf6628a5ebd981d373929802317104e24 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Wed, 4 Sep 2024 09:56:42 +0200 Subject: clippy --fix --- src/files.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/files.rs') 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( } while js.join_next().await.is_some() { - all.inc(1) + all.inc(1); } all.finish_with_message(format!("âś“Downloading {}", list.id)); @@ -128,7 +128,7 @@ async fn download_file( name: &str, progress: &ProgressBar, ) -> MLE<()> { - let dl_path_file = format!("{}/{}", path, name); + let dl_path_file = format!("{path}/{name}"); let res = Client::new().get(url).send().await?; let size = res.content_length().expect("Couldn't get content length"); @@ -169,7 +169,7 @@ pub fn disable_version( mod_id: String, ) -> MLE<()> { let file = get_file_path(¤t_list, String::from(&versionid))?; - let disabled = format!("{}.disabled", file); + let disabled = format!("{file}.disabled"); rename(file, disabled)?; -- cgit v1.2.3