Fix unnecessary unused lints.
This commit is contained in:
parent
5f1aa344ab
commit
563d82a525
@ -26,7 +26,8 @@ impl<'a> Iterator for NodeIter<'a> {
|
||||
result = Some(next);
|
||||
} else {
|
||||
// Can not fail because we just borrowed last.
|
||||
self.stack.pop().unwrap();
|
||||
// We just checked that the iterator is empty, so we can safely discard it.
|
||||
let _ = self.stack.pop().unwrap();
|
||||
}
|
||||
} else {
|
||||
return None;
|
||||
|
Loading…
Reference in New Issue
Block a user