Skip to content

Commit 19053aa

Browse files
committed
Suppresses invalid clippy warning
This PR suppresses an invalid clippy warning. See issue #472 for details.
1 parent 1b5cc0b commit 19053aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/value/element_stream_reader.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ impl IonReader for ElementStreamReader {
172172
false
173173
}
174174

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

0 commit comments

Comments
 (0)