From a22b2f06fedd7b0da9ad8b624a9b81ce69119a30 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 27 Jun 2025 09:02:10 +0200 Subject: [PATCH] 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 --- rust/htp/src/decompressors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)