Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Ockajak committed Jul 18, 2024
1 parent e023454 commit ad3ef50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/extensions/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1154,8 +1154,7 @@ pub trait Sequence<Item> {
I: DoubleEndedIterator<Item = Item>,
Self: IntoIterator<Item = Item, IntoIter = I> + FromIterator<Item>,
{
let iterator = self.into_iter();
iterator.rev().collect()
self.into_iter().rev().collect()
}

/// Reduces this sequence's elements to a single, final value, starting from the back.
Expand Down

0 comments on commit ad3ef50

Please sign in to comment.