From ea23904be60fa5efdd3f208f650dba303b1d9aa0 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 6 Jun 2025 06:12:22 +0000 Subject: [PATCH] Fix cargo clippy issue --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index a7c521e..8f5005a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ use std::fs::File; -use std::io::{ErrorKind, Write}; +use std::io::Write; use std::path::{Path, PathBuf}; use std::pin::Pin; use std::sync::mpsc; @@ -103,8 +103,7 @@ 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); - return Err(std::io::Error::new( - ErrorKind::Other, + return Err(std::io::Error::other( "Failed to send a chunk of data!", )); }