Skip to content

inout: fixup clippy 1.85 warnings #1171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

baloo
Copy link
Member

@baloo baloo commented Mar 31, 2025

When clippy runs without block-padding, it will throw warnings:

warning: the following explicit lifetimes could be elided: 'inp, 'out
   --> inout/src/reserved.rs:152:6
    |
152 | impl<'inp, 'out> InOutBufReserved<'inp, 'out, u8> {
    |      ^^^^  ^^^^                   ^^^^  ^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    = note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
    |
152 - impl<'inp, 'out> InOutBufReserved<'inp, 'out, u8> {
152 + impl InOutBufReserved<'_, '_, u8> {

@baloo baloo force-pushed the baloo/inout/clippy-1.85 branch from 7121e96 to c788061 Compare March 31, 2025 15:48
@newpavlov newpavlov merged commit c7e6555 into RustCrypto:master Mar 31, 2025
9 checks passed
@baloo baloo deleted the baloo/inout/clippy-1.85 branch March 31, 2025 16:13
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