Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Craig <philipjcraig@gmail.com>
  • Loading branch information
yshui and philipc authored Aug 3, 2024
1 parent c7ba29a commit cdab1d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/read/elf/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ where
}
}

impl<'data, Elf: FileHeader> std::iter::Iterator for NoteIterator<'data, Elf> {
impl<'data, Elf: FileHeader> Iterator for NoteIterator<'data, Elf> {
type Item = read::Result<Note<'data, Elf>>;
fn next(&mut self) -> Option<Self::Item> {
match self.next() {
Err(e) => {
self.data = read::util::Bytes(&[]);
self.data = Bytes(&[]);
Some(Err(e))
},
}
Ok(Some(v)) => Some(Ok(v)),
Ok(None) => None,
}
Expand Down

0 comments on commit cdab1d9

Please sign in to comment.