Remove unnecessary lifetime annotations

This fixes a clippy lint.
This commit is contained in:
Robin Krahl
2025-06-01 22:34:30 +02:00
parent bec7429f8b
commit 031c0b2029
+2 -2
View File
@@ -403,7 +403,7 @@ mod generics {
option: Option<u8>,
}
fn const_generics_example<'a>() -> WithConstGeneric<3> {
fn const_generics_example() -> WithConstGeneric<3> {
WithConstGeneric {
data: ByteArray::new([1, 2, 3]),
option: None,
@@ -468,7 +468,7 @@ mod generics {
#[test]
fn all_generics() {
const SERIALIZED_ALL_GENERIC_EXAMPLE: &'static [u8] = b"\xa4\x01\x82\x63\x61\x62\x63\x65\x61\x63\x64\x65\x66\x02\x83\x01\x02\x03\x03\x45\x62\x79\x74\x65\x73\x04\x43\x31\x32\x33";
const SERIALIZED_ALL_GENERIC_EXAMPLE: &[u8] = b"\xa4\x01\x82\x63\x61\x62\x63\x65\x61\x63\x64\x65\x66\x02\x83\x01\x02\x03\x03\x45\x62\x79\x74\x65\x73\x04\x43\x31\x32\x33";
let data = all_generics_example();
let mut buf = [0u8; 64];
let size = cbor_serialize(&data, &mut buf).unwrap();