Skip to content

Commit

Permalink
debounce: remove into_iter() since &self.cur already implements IntoI…
Browse files Browse the repository at this point in the history
…terator<>
  • Loading branch information
borisfaure authored and TeXitoi committed Nov 16, 2023
1 parent d0a613b commit 285f01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debounce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl<T: PartialEq> Debouncer<T> {
Left(
self.new
.into_iter()
.zip(self.cur.into_iter())
.zip(&self.cur)
.enumerate()
.flat_map(move |(i, (o, n))| {
o.into_iter()
Expand Down

0 comments on commit 285f01f

Please sign in to comment.