rust/lzma: clippy fixup

pull/8237/head
Victor Julien 3 years ago
parent 7bfb63210e
commit 64c0459d2d

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

Loading…
Cancel
Save