Fix cargo clippy issues
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -102,7 +102,7 @@ struct SendWrapper(mpsc::SyncSender<Vec<u8>>);
|
||||
impl Write for SendWrapper {
|
||||
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user