From 05c94b493fe7a9e89ad119b69d7c37ea2c757f41 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Tue, 30 Jan 2024 21:07:05 +0100 Subject: [PATCH] ignore clippy false positive --- src/armor/reader.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/armor/reader.rs b/src/armor/reader.rs index dee907e65..7d412326c 100644 --- a/src/armor/reader.rs +++ b/src/armor/reader.rs @@ -387,6 +387,8 @@ impl Dearmor { self.base_decoder = Some(Base64Decoder::new(Base64Reader::new(LineReader::new(b)))); } + // "allow" as workaround for https://github.com/rust-lang/rust-clippy/issues/12208 + #[allow(clippy::unused_io_amount)] let size = if let Some(ref mut base_decoder) = self.base_decoder { base_decoder.read(into)? } else {