@@ -8,8 +8,8 @@ use crate::backends::plonky2::mock_main::MockMainPod;
88use crate :: backends:: plonky2:: mock_signed:: MockSignedPod ;
99use crate :: frontend:: containers:: Dictionary ;
1010use crate :: frontend:: Statement ;
11- use crate :: middleware:: { HASH_SIZE , VALUE_SIZE } ;
1211use crate :: middleware:: { PodId , F } ;
12+ use crate :: middleware:: { HASH_SIZE , VALUE_SIZE } ;
1313use plonky2:: field:: types:: Field ;
1414
1515use super :: Value ;
@@ -80,7 +80,7 @@ impl Serialize for MainPod {
8080 state. serialize_field ( "pod_class" , "Main" ) ?;
8181 state. serialize_field ( "pod_type" , "Mock" ) ?;
8282 state. end ( )
83- }
83+ }
8484}
8585
8686impl < ' de > Deserialize < ' de > for MainPod {
@@ -94,7 +94,7 @@ impl<'de> Deserialize<'de> for MainPod {
9494 proof : String ,
9595 pod_class : String ,
9696 pod_type : String ,
97- }
97+ }
9898
9999 let helper = MainPodHelper :: deserialize ( deserializer) ?;
100100 if helper. pod_class != "Main" {
@@ -129,7 +129,10 @@ where
129129 . map_err ( serde:: de:: Error :: custom)
130130}
131131
132- fn serialize_field_tuple < S , const N : usize > ( value : & [ F ; N ] , serializer : S ) -> Result < S :: Ok , S :: Error >
132+ fn serialize_field_tuple < S , const N : usize > (
133+ value : & [ F ; N ] ,
134+ serializer : S ,
135+ ) -> Result < S :: Ok , S :: Error >
133136where
134137 S : serde:: Serializer ,
135138{
@@ -150,7 +153,7 @@ where
150153 let end = start + 16 ;
151154 let hex_part = & hex_str[ start..end] ;
152155 v[ i] = F :: from_canonical_u64 (
153- u64:: from_str_radix ( hex_part, 16 ) . map_err ( serde:: de:: Error :: custom) ?
156+ u64:: from_str_radix ( hex_part, 16 ) . map_err ( serde:: de:: Error :: custom) ?,
154157 ) ;
155158 }
156159 Ok ( v)
0 commit comments