Skip to content

Commit

Permalink
ignore clippy false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
hko-s committed Feb 3, 2024
1 parent 5a1e8c7 commit 05c94b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/armor/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ impl<R: Read + Seek> Dearmor<R> {
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 {
Expand Down

0 comments on commit 05c94b4

Please sign in to comment.