Skip to content

kuznyechik: remove unnecessary mut in f.call() - #584

Merged
newpavlov merged 1 commit into
RustCrypto:masterfrom
tangaac:fix/kuznyechik-unnecessary-mut
Aug 26, 2026
Merged

kuznyechik: remove unnecessary mut in f.call()#584
newpavlov merged 1 commit into
RustCrypto:masterfrom
tangaac:fix/kuznyechik-unnecessary-mut

Conversation

@tangaac

@tangaac tangaac commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Newer clippy versions flag unnecessary_mut_passed when calling
f.call(&mut Backend) on the BlockCipherEncClosure::call /
BlockCipherDecClosure::call trait methods, which take &self (not
&mut self).

With -D warnings in CI, this breaks the build on newer toolchains.

Remove the excess mut in both big_soft/mod.rs and
compact_soft/mod.rs.

Verification

cargo clippy --all --exclude aes --all-features -- -D warnings passes.

Newer clippy versions flag `unnecessary_mut_passed` when calling
`f.call(&mut Backend)` on a trait method that takes `&self` (immutable
reference). Remove the excess `mut` to satisfy `-D warnings`.
@newpavlov
newpavlov merged commit 1013f13 into RustCrypto:master Aug 26, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants