Skip to content

Commit f448b6c

Browse files
Fix clippy warnings
1 parent 2c3d400 commit f448b6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/basics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ mod generics {
406406
option: Option<u8>,
407407
}
408408

409-
fn const_generics_example<'a>() -> WithConstGeneric<3> {
409+
fn const_generics_example() -> WithConstGeneric<3> {
410410
WithConstGeneric {
411411
data: ByteArray::new([1, 2, 3]),
412412
option: None,
@@ -471,7 +471,7 @@ mod generics {
471471

472472
#[test]
473473
fn all_generics() {
474-
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";
474+
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";
475475
let data = all_generics_example();
476476
let mut buf = [0u8; 64];
477477
let size = cbor_serialize(&data, &mut buf).unwrap();

0 commit comments

Comments
 (0)