Skip to content

Commit adf90af

Browse files
author
Shelvacu
committed
Small cleanup
1 parent 1800215 commit adf90af

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/database.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,7 @@ impl<'a, 'b> Iterator for ReaderIter<'a, 'b> {
479479
type Item = Result<(StorePath, FileTreeEntry)>;
480480

481481
fn next(&mut self) -> Option<Self::Item> {
482-
match self.next_match() {
483-
Err(e) => Some(Err(e)),
484-
Ok(v) => v.map(Ok),
485-
}
482+
self.next_match().transpose()
486483
}
487484
}
488485

0 commit comments

Comments
 (0)