Skip to content

Commit 6f3dbab

Browse files
hellow554phimuemue
authored andcommitted
fix clippy::semicolon_if_nothing_returned
1 parent 1c50468 commit 6f3dbab

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/adaptors/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl<I> PutBack<I>
208208
/// If a value is already in the put back slot, it is overwritten.
209209
#[inline]
210210
pub fn put_back(&mut self, x: I::Item) {
211-
self.top = Some(x)
211+
self.top = Some(x);
212212
}
213213
}
214214

src/combinations_with_replacement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ where
9292
// We need to update the rightmost non-max value
9393
// and all those to the right
9494
for indices_index in increment_from..self.indices.len() {
95-
self.indices[indices_index] = increment_value
95+
self.indices[indices_index] = increment_value;
9696
}
9797
Some(self.current())
9898
}

src/groupbylazy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ impl<K, I, F> GroupBy<K, I, F>
330330

331331
/// `client`: Index of group
332332
fn drop_group(&self, client: usize) {
333-
self.inner.borrow_mut().drop_group(client)
333+
self.inner.borrow_mut().drop_group(client);
334334
}
335335
}
336336

@@ -482,7 +482,7 @@ impl<I> IntoChunks<I>
482482

483483
/// `client`: Index of chunk
484484
fn drop_group(&self, client: usize) {
485-
self.inner.borrow_mut().drop_group(client)
485+
self.inner.borrow_mut().drop_group(client);
486486
}
487487
}
488488

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ pub trait Itertools : Iterator {
19531953
where F: FnMut(Self::Item),
19541954
Self: Sized,
19551955
{
1956-
self.for_each(f)
1956+
self.for_each(f);
19571957
}
19581958

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

0 commit comments

Comments
 (0)