Skip to content

Commit

Permalink
Merge pull request rpgp#281 from hko-s/clippy-ignore
Browse files Browse the repository at this point in the history
ignore clippy false positive
  • Loading branch information
dignifiedquire authored Feb 3, 2024
2 parents 5a1e8c7 + 05c94b4 commit 60db207
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 60db207

Please sign in to comment.