Skip to content

Commit

Permalink
CI: bump clippy to v1.84; enable --all-features (#94)
Browse files Browse the repository at this point in the history
Includes clippy fixes for code which previously wasn't checked because
it was feature-gated
  • Loading branch information
tarcieri authored Jan 21, 2025
1 parent 2425fe5 commit d60e0d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.81
- uses: dtolnay/rust-toolchain@1.84
with:
components: clippy
- run: cargo clippy -- -D warnings
- run: cargo clippy --all-features -- -D warnings
# TODO: - run: cargo clippy --all-features --all-targets -- -D warnings

doc:
Expand Down
6 changes: 3 additions & 3 deletions ml-kem/src/algebra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ pub struct NttPolynomial(pub Array<FieldElement, U256>);
#[cfg(feature = "zeroize")]
impl Zeroize for NttPolynomial {
fn zeroize(&mut self) {
for fe in self.0.iter_mut() {
fe.zeroize()
for fe in &mut self.0 {
fe.zeroize();
}
}
}
Expand Down Expand Up @@ -435,7 +435,7 @@ where
K: ArraySize,
{
fn zeroize(&mut self) {
for poly in self.0.iter_mut() {
for poly in &mut self.0 {
poly.zeroize();
}
}
Expand Down
2 changes: 1 addition & 1 deletion x-wing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ mod tests {
}

fn fill_bytes(&mut self, dest: &mut [u8]) {
self.try_fill_bytes(dest).unwrap()
self.try_fill_bytes(dest).unwrap();
}

fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> {
Expand Down

0 comments on commit d60e0d0

Please sign in to comment.