Skip to content

Commit 2708ba1

Browse files
committed
clippy: elide lifetimes
1 parent da73705 commit 2708ba1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ impl<'a> Aes128Cbc<'a> {
266266
}
267267
}
268268

269-
impl<'a> FfiAesCbcCipher for Aes128Cbc<'a> {
269+
impl FfiAesCbcCipher for Aes128Cbc<'_> {
270270
fn ffi_decrypt(&self, num_blocks: usize, plaintext: &mut [u8], ciphertext: &[u8]) {
271271
let mut context = AES128_CBC_ctx::default();
272272
unsafe {
@@ -294,7 +294,7 @@ impl<'a> FfiAesCbcCipher for Aes128Cbc<'a> {
294294
}
295295
}
296296

297-
impl<'a> AesCbcBlockCipher for Aes128Cbc<'a> {}
297+
impl AesCbcBlockCipher for Aes128Cbc<'_> {}
298298

299299
/// 192-bit AES-CBC cipher
300300
pub struct Aes192Cbc<'a> {
@@ -315,7 +315,7 @@ impl<'a> Aes192Cbc<'a> {
315315
}
316316
}
317317

318-
impl<'a> FfiAesCbcCipher for Aes192Cbc<'a> {
318+
impl FfiAesCbcCipher for Aes192Cbc<'_> {
319319
fn ffi_decrypt(&self, num_blocks: usize, plaintext: &mut [u8], ciphertext: &[u8]) {
320320
let mut context = AES192_CBC_ctx::default();
321321
unsafe {
@@ -343,7 +343,7 @@ impl<'a> FfiAesCbcCipher for Aes192Cbc<'a> {
343343
}
344344
}
345345

346-
impl<'a> AesCbcBlockCipher for Aes192Cbc<'a> {}
346+
impl AesCbcBlockCipher for Aes192Cbc<'_> {}
347347

348348
/// 256-bit AES-CBC cipher
349349
pub struct Aes256Cbc<'a> {
@@ -364,7 +364,7 @@ impl<'a> Aes256Cbc<'a> {
364364
}
365365
}
366366

367-
impl<'a> FfiAesCbcCipher for Aes256Cbc<'a> {
367+
impl FfiAesCbcCipher for Aes256Cbc<'_> {
368368
fn ffi_decrypt(&self, num_blocks: usize, plaintext: &mut [u8], ciphertext: &[u8]) {
369369
let mut context = AES256_CBC_ctx::default();
370370
unsafe {
@@ -392,7 +392,7 @@ impl<'a> FfiAesCbcCipher for Aes256Cbc<'a> {
392392
}
393393
}
394394

395-
impl<'a> AesCbcBlockCipher for Aes256Cbc<'a> {}
395+
impl AesCbcBlockCipher for Aes256Cbc<'_> {}
396396

397397
#[cfg(test)]
398398
mod test {

0 commit comments

Comments
 (0)