]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/lzma: clippy fixup 8237/head
authorVictor Julien <vjulien@oisf.net>
Sat, 3 Dec 2022 09:52:38 +0000 (10:52 +0100)
committerVictor Julien <vjulien@oisf.net>
Sat, 3 Dec 2022 09:52:38 +0000 (10:52 +0100)
rust/src/lzma.rs

index c097e9d163ba384ccc20076cdbf13b7013d117ec..b16c4e7b52552b457baaefb79ae187079f839368 100644 (file)
@@ -36,7 +36,7 @@ impl From<Error> for LzmaStatus {
             Error::IoError(_) => LzmaStatus::LzmaIoError,
             Error::HeaderTooShort(_) => LzmaStatus::LzmaHeaderTooShortError,
             Error::LzmaError(e) => {
-                if e.to_string().contains("exceeded memory limit") {
+                if e.contains("exceeded memory limit") {
                     LzmaStatus::LzmaMemoryError
                 } else {
                     LzmaStatus::LzmaError