Compare commits

..

2 Commits

Author SHA1 Message Date
b5eac1ed2f Update Rust crate clap to 4.5.39
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2025-06-07 00:21:02 +00:00
ea23904be6 Fix cargo clippy issue
All checks were successful
continuous-integration/drone/push Build is passing
2025-06-06 06:12:22 +00:00

View File

@ -1,5 +1,5 @@
use std::fs::File; use std::fs::File;
use std::io::{ErrorKind, Write}; use std::io::Write;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use std::pin::Pin; use std::pin::Pin;
use std::sync::mpsc; use std::sync::mpsc;
@ -103,8 +103,7 @@ impl Write for SendWrapper {
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> { fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
if let Err(e) = self.0.send(buf.to_vec()) { 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::new( return Err(std::io::Error::other(
ErrorKind::Other,
"Failed to send a chunk of data!", "Failed to send a chunk of data!",
)); ));
} }