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
3 changed files with 7 additions and 8 deletions

8
Cargo.lock generated
View File

@ -473,9 +473,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]] [[package]]
name = "clap" name = "clap"
version = "4.5.38" version = "4.5.39"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed93b9805f8ba930df42c2590f05453d5ec36cbb85d018868a5b24d31f6ac000" checksum = "fd60e63e9be68e5fb56422e397cf9baddded06dae1d2e523401542383bc72a9f"
dependencies = [ dependencies = [
"clap_builder", "clap_builder",
"clap_derive", "clap_derive",
@ -483,9 +483,9 @@ dependencies = [
[[package]] [[package]]
name = "clap_builder" name = "clap_builder"
version = "4.5.38" version = "4.5.39"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "379026ff283facf611b0ea629334361c4211d1b12ee01024eec1591133b04120" checksum = "89cc6392a1f72bbeb820d71f32108f61fdaf18bc526e1d23954168a67759ef51"
dependencies = [ dependencies = [
"anstream", "anstream",
"anstyle", "anstyle",

View File

@ -6,7 +6,7 @@ edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
clap = { version = "4.5.38", features = ["derive", "env"] } clap = { version = "4.5.39", features = ["derive", "env"] }
tar = "0.4.44" tar = "0.4.44"
actix-web = "4.11.0" actix-web = "4.11.0"
actix = "0.13.5" actix = "0.13.5"

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!",
)); ));
} }