Skip to content

Commit 3c0cf6c

Browse files
Add a pattern binding for no real reason
1 parent 09194a5 commit 3c0cf6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/procrs/pid/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl Iterator for PidIter {
180180
fn next(&mut self) -> Option<Self::Item> {
181181
for entry in self.dir_iter.by_ref() {
182182
match Self::proc_dir_filter(entry, &self.query) {
183-
Some(p) => return Some(p),
183+
some @ Some(_) => return some,
184184
None => continue
185185
}
186186
}

0 commit comments

Comments
 (0)