From: Philippe Antoine Date: Fri, 27 Jun 2025 07:02:10 +0000 (+0200) Subject: rust/htp: fix clippy uninlined_format_args X-Git-Tag: suricata-8.0.0~18 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a22b2f06fedd7b0da9ad8b624a9b81ce69119a30;p=thirdparty%2Fsuricata.git rust/htp: fix clippy uninlined_format_args --> htp/src/decompressors.rs:703:64 | 703 | std::io::Error::new(std::io::ErrorKind::Other, format!("{}", e)) | ^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args --- diff --git a/rust/htp/src/decompressors.rs b/rust/htp/src/decompressors.rs index 7de44cf669..e2f908e1ed 100644 --- a/rust/htp/src/decompressors.rs +++ b/rust/htp/src/decompressors.rs @@ -700,7 +700,7 @@ impl BufWriter for LzmaBufWriter { self.0.finish().map_err(|e| match e { lzma_rs::error::Error::IoError(e) => e, lzma_rs::error::Error::HeaderTooShort(e) => { - std::io::Error::new(std::io::ErrorKind::Other, format!("{}", e)) + std::io::Error::new(std::io::ErrorKind::Other, format!("{e}")) } lzma_rs::error::Error::LzmaError(e) | lzma_rs::error::Error::XzError(e) => { std::io::Error::new(std::io::ErrorKind::Other, e)