Skip to content

Commit c7e6555

Browse files
authored
inout: fixup clippy 1.85 warnings (#1171)
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> { ```
1 parent 0966d23 commit c7e6555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inout/src/reserved.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ impl<'inp, 'out, T> InOutBufReserved<'inp, 'out, T> {
149149
}
150150
}
151151

152+
#[cfg(feature = "block-padding")]
152153
impl<'inp, 'out> InOutBufReserved<'inp, 'out, u8> {
153154
/// Transform buffer into [`PaddedInOutBuf`] using padding algorithm `P`.
154-
#[cfg(feature = "block-padding")]
155155
#[inline(always)]
156156
pub fn into_padded_blocks<P, BS>(self) -> Result<PaddedInOutBuf<'inp, 'out, BS>, PadError>
157157
where

0 commit comments

Comments
 (0)