Skip to content

Commit

Permalink
fix clippy::semicolon_if_nothing_returned
Browse files Browse the repository at this point in the history
  • Loading branch information
hellow554 authored and phimuemue committed Jul 7, 2022
1 parent 1c50468 commit 6f3dbab
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/adaptors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl<I> PutBack<I>
/// If a value is already in the put back slot, it is overwritten.
#[inline]
pub fn put_back(&mut self, x: I::Item) {
self.top = Some(x)
self.top = Some(x);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/combinations_with_replacement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ where
// We need to update the rightmost non-max value
// and all those to the right
for indices_index in increment_from..self.indices.len() {
self.indices[indices_index] = increment_value
self.indices[indices_index] = increment_value;
}
Some(self.current())
}
Expand Down
4 changes: 2 additions & 2 deletions src/groupbylazy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ impl<K, I, F> GroupBy<K, I, F>

/// `client`: Index of group
fn drop_group(&self, client: usize) {
self.inner.borrow_mut().drop_group(client)
self.inner.borrow_mut().drop_group(client);
}
}

Expand Down Expand Up @@ -482,7 +482,7 @@ impl<I> IntoChunks<I>

/// `client`: Index of chunk
fn drop_group(&self, client: usize) {
self.inner.borrow_mut().drop_group(client)
self.inner.borrow_mut().drop_group(client);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1953,7 +1953,7 @@ pub trait Itertools : Iterator {
where F: FnMut(Self::Item),
Self: Sized,
{
self.for_each(f)
self.for_each(f);
}

/// Combine all an iterator's elements into one element by using [`Extend`].
Expand Down

0 comments on commit 6f3dbab

Please sign in to comment.