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
pull/13545/head
Philippe Antoine 1 year ago committed by Victor Julien
parent b8ee6513cc
commit a22b2f06fe

@ -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)

Loading…
Cancel
Save