File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ mod generics {
406
406
option : Option < u8 > ,
407
407
}
408
408
409
- fn const_generics_example < ' a > ( ) -> WithConstGeneric < 3 > {
409
+ fn const_generics_example ( ) -> WithConstGeneric < 3 > {
410
410
WithConstGeneric {
411
411
data : ByteArray :: new ( [ 1 , 2 , 3 ] ) ,
412
412
option : None ,
@@ -471,7 +471,7 @@ mod generics {
471
471
472
472
#[ test]
473
473
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 " ;
475
475
let data = all_generics_example ( ) ;
476
476
let mut buf = [ 0u8 ; 64 ] ;
477
477
let size = cbor_serialize ( & data, & mut buf) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments