Skip to content

Commit 83a376a

Browse files
committed
clippy 1.87 fixes
1 parent 705400a commit 83a376a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ 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(
179+
iter::repeat_n(0, remaining_len)
180+
);
179181
self.decode(&mut buf[start_len..])?;
180182
Ok(&buf[start_len..])
181183
}

0 commit comments

Comments
 (0)