From 64c0459d2d02d45d8e38562c15a7c85ff70bb722 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 3 Dec 2022 10:52:38 +0100 Subject: [PATCH] rust/lzma: clippy fixup --- rust/src/lzma.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/lzma.rs b/rust/src/lzma.rs index c097e9d163..b16c4e7b52 100644 --- a/rust/src/lzma.rs +++ b/rust/src/lzma.rs @@ -36,7 +36,7 @@ impl From 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 -- 2.47.2