Skip to content

Commit

Permalink
Suppresses invalid clippy warning (#483)
Browse files Browse the repository at this point in the history
See issue #472 for details.
  • Loading branch information
zslayton authored Mar 15, 2023
1 parent 1b5cc0b commit 747ee44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/value/element_stream_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ impl IonReader for ElementStreamReader {
false
}

// Clippy reports a redundant closure, but fixing it causes the code to break.
// See: https://github.com/amazon-ion/ion-rust/issues/472
#[allow(clippy::redundant_closure)]
fn annotations<'a>(&'a self) -> Box<dyn Iterator<Item = IonResult<Self::Symbol>> + 'a> {
let iterator = self
.current_value
Expand Down

0 comments on commit 747ee44

Please sign in to comment.