Skip to content

Commit 9bc0745

Browse files
authored
Fix clippy warnings (#2065)
1 parent fdce433 commit 9bc0745

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: exercises/practice/all-your-base/.meta/example.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub enum Error {
3636
/// Notes:
3737
/// * The empty slice ( "[]" ) is equal to the number 0.
3838
/// * Never output leading 0 digits. However, your function must be able to
39-
/// process input with leading 0 digits.
39+
/// process input with leading 0 digits.
4040
///
4141
pub fn convert<P: AsRef<[Digit]>>(
4242
digits: P,

Diff for: exercises/practice/dominoes/.meta/example.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::iter;
2-
31
pub type Domino = (u8, u8);
42

53
/// A table keeping track of available dominoes.
@@ -14,7 +12,7 @@ struct AvailabilityTable {
1412
impl AvailabilityTable {
1513
fn new() -> AvailabilityTable {
1614
AvailabilityTable {
17-
m: iter::repeat(0).take(6 * 6).collect(),
15+
m: std::iter::repeat_n(0, 6 * 6).collect(),
1816
}
1917
}
2018

0 commit comments

Comments
 (0)