File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -981,8 +981,8 @@ where
981
981
_ => unreachable ! ( ) ,
982
982
} ;
983
983
984
- let grm_data = encode_to_vec ( grm, bincode:: config:: legacy ( ) ) ?;
985
- let stable_data = encode_to_vec ( stable, bincode:: config:: legacy ( ) ) ?;
984
+ let grm_data = encode_to_vec ( grm, bincode:: config:: standard ( ) ) ?;
985
+ let stable_data = encode_to_vec ( stable, bincode:: config:: standard ( ) ) ?;
986
986
Ok ( quote ! {
987
987
const __GRM_DATA: & [ u8 ] = & [ #( #grm_data, ) * ] ;
988
988
const __STABLE_DATA: & [ u8 ] = & [ #( #stable_data, ) * ] ;
@@ -1340,8 +1340,8 @@ pub fn _reconstitute<StorageT: Decode<()> + Hash + PrimInt + Unsigned + 'static>
1340
1340
grm_buf : & [ u8 ] ,
1341
1341
stable_buf : & [ u8 ] ,
1342
1342
) -> ( YaccGrammar < StorageT > , StateTable < StorageT > ) {
1343
- let ( grm, _) = decode_from_slice ( grm_buf, bincode:: config:: legacy ( ) ) . unwrap ( ) ;
1344
- let ( stable, _) = decode_from_slice ( stable_buf, bincode:: config:: legacy ( ) ) . unwrap ( ) ;
1343
+ let ( grm, _) = decode_from_slice ( grm_buf, bincode:: config:: standard ( ) ) . unwrap ( ) ;
1344
+ let ( stable, _) = decode_from_slice ( stable_buf, bincode:: config:: standard ( ) ) . unwrap ( ) ;
1345
1345
( grm, stable)
1346
1346
}
1347
1347
You can’t perform that action at this time.
0 commit comments