Skip to content

inout: fixup clippy 1.85 warnings#1171

Merged
newpavlov merged 1 commit intoRustCrypto:masterfrom
baloo:baloo/inout/clippy-1.85
Mar 31, 2025
Merged

inout: fixup clippy 1.85 warnings#1171
newpavlov merged 1 commit intoRustCrypto:masterfrom
baloo:baloo/inout/clippy-1.85

Conversation

@baloo
Copy link
Copy Markdown
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