Skip to content

Commit 35e2738

Browse files
authored
clippy 1.87 fixes (#1857)
1 parent 19ce475 commit 35e2738

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- uses: dtolnay/rust-toolchain@master
2323
with:
24-
toolchain: 1.85.0
24+
toolchain: 1.87.0
2525
components: clippy
2626
- run: cargo clippy --all --all-features --tests
2727

base64ct/src/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl<'i, E: Encoding> Decoder<'i, E> {
175175
}
176176

177177
// Append `decoded_len` zeroes to the vector
178-
buf.extend(iter::repeat(0).take(remaining_len));
178+
buf.extend(iter::repeat_n(0, remaining_len));
179179
self.decode(&mut buf[start_len..])?;
180180
Ok(&buf[start_len..])
181181
}

0 commit comments

Comments
 (0)