mirror of
https://github.com/trussed-dev/serde-indexed.git
synced 2026-06-20 04:16:32 -07:00
Remove unnecessary lifetime annotations
This fixes a clippy lint.
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user