From 3861400145c531a9b0a06aaefeb5887b248b64da Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 3 Jul 2025 08:11:36 +0200 Subject: [PATCH] Fix cargo clippy issues --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8f5005a..390e77f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -102,7 +102,7 @@ struct SendWrapper(mpsc::SyncSender>); impl Write for SendWrapper { fn write(&mut self, buf: &[u8]) -> std::io::Result { if let Err(e) = self.0.send(buf.to_vec()) { - log::error!("Failed to send a chunk of data! {}", e); + log::error!("Failed to send a chunk of data! {e}"); return Err(std::io::Error::other( "Failed to send a chunk of data!", )); @@ -127,7 +127,7 @@ impl FileStreamer { for file in files_list() { let file_path = &file.to_str().unwrap().replace(&ARGS.target_dir, "")[1..]; - log::debug!("Add {} to archive", file_path); + log::debug!("Add {file_path} to archive"); tar.append_file( file_path, &mut File::open(&file).expect("Failed to open file"), @@ -149,7 +149,7 @@ impl Stream for FileStreamer { match self.receive.recv() { Ok(d) => Poll::Ready(Some(Ok(Bytes::copy_from_slice(&d)))), Err(e) => { - log::error!("Recv error: {}", e); + log::error!("Recv error: {e}"); Poll::Ready(None) } }