Skip to content
Myr

Remove unneeded take in Chain implementation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 0dca03d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/error.rs+1 added-1 removed
729 unmodified lines
730impl<'a> Iterator for Chain<'a> {731 type Item = &'a (dyn StdError + 'static);732733 fn next(&mut self) -> Option<Self::Item> {734 let next = self.next.take()?;734 let next = self.next?;735 self.next = next.source();736 Some(next)737 }738}