@@ -91,19 +91,19 @@ impl<Inner: Proof + serde::de::DeserializeOwned> ProofV2<Inner> {
91
91
/// Read and deserialize the proof.
92
92
pub fn from_json < P : AsRef < Path > > ( dir : P , suffix : & str ) -> Result < Self , ProverError > {
93
93
let path = Self :: path_proof ( dir, suffix) ;
94
- Ok ( read_json_deep ( path) ? )
94
+ read_json_deep ( path)
95
95
}
96
96
97
97
/// Serialize the proof and other peripheral data, before dumping in the provided directory.
98
98
pub fn dump < P : AsRef < Path > > ( & self , dir : P , suffix : & str ) -> Result < ( ) , ProverError > {
99
99
// Dump the verifying key.
100
- write ( Self :: path_vk ( & dir, & suffix) , & self . vk ) ?;
100
+ write ( Self :: path_vk ( & dir, suffix) , & self . vk ) ?;
101
101
102
102
// Dump the proof itself.
103
- write_json ( Self :: path_proof ( & dir, & suffix) , & self ) ?;
103
+ write_json ( Self :: path_proof ( & dir, suffix) , & self ) ?;
104
104
105
105
// Dump any other data for the inner data.
106
- self . inner . dump ( & dir, & suffix) ?;
106
+ self . inner . dump ( & dir, suffix) ?;
107
107
108
108
Ok ( ( ) )
109
109
}
@@ -210,7 +210,7 @@ impl BundleProofV2 {
210
210
}
211
211
212
212
Ok ( Self {
213
- inner : BundleProofV2Metadata :: default ( ) ,
213
+ inner : BundleProofV2Metadata ,
214
214
proof : proof. to_vec ( ) ,
215
215
instances : instances. to_vec ( ) ,
216
216
vk : vk. to_vec ( ) ,
@@ -275,7 +275,7 @@ impl Proof for ChunkProofV2Metadata {
275
275
}
276
276
277
277
fn dump < P : AsRef < Path > > ( & self , dir : P , suffix : & str ) -> Result < ( ) , ProverError > {
278
- write ( Self :: path_protocol ( & dir, & suffix) , & self . protocol ) ?;
278
+ write ( Self :: path_protocol ( & dir, suffix) , & self . protocol ) ?;
279
279
280
280
Ok ( ( ) )
281
281
}
@@ -310,7 +310,7 @@ impl Proof for BatchProofV2Metadata {
310
310
}
311
311
312
312
fn dump < P : AsRef < Path > > ( & self , dir : P , suffix : & str ) -> Result < ( ) , ProverError > {
313
- write ( Self :: path_protocol ( & dir, & suffix) , & self . protocol ) ?;
313
+ write ( Self :: path_protocol ( & dir, suffix) , & self . protocol ) ?;
314
314
315
315
Ok ( ( ) )
316
316
}
0 commit comments