Skip to content

Commit 7ca44d7

Browse files
committed
fix clippy::semicolon_if_nothing_returned
1 parent 46fddd3 commit 7ca44d7

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

@@ -487,7 +487,7 @@ impl<I> IntoChunks<I>
487487

488488
/// `client`: Index of chunk
489489
fn drop_group(&self, client: usize) {
490-
self.inner.borrow_mut().drop_group(client)
490+
self.inner.borrow_mut().drop_group(client);
491491
}
492492
}
493493

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1947,7 +1947,7 @@ pub trait Itertools : Iterator {
19471947
where F: FnMut(Self::Item),
19481948
Self: Sized,
19491949
{
1950-
self.for_each(f)
1950+
self.for_each(f);
19511951
}
19521952

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

0 commit comments

Comments
 (0)