Commit cca036d 1 parent a5d9882 commit cca036d Copy full SHA for cca036d
File tree 1 file changed +9
-9
lines changed
rollup/circuitcapacitychecker/libzkp/src
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ pub mod checker {
49
49
/// # Safety
50
50
#[ no_mangle]
51
51
pub unsafe extern "C" fn parse_json_to_rust_trace ( trace_json_ptr : * const c_char ) -> * mut BlockTrace {
52
- let trace_json_cstr = CStr :: from_ptr ( trace_json_ptr) ;
52
+ let trace_json_cstr = unsafe { CStr :: from_ptr ( trace_json_ptr) } ;
53
53
let trace_json_bytes = trace_json_cstr. to_bytes ( ) ;
54
54
let mut deserializer = Deserializer :: from_slice ( trace_json_bytes) ;
55
55
deserializer. disable_recursion_limit ( ) ;
@@ -238,10 +238,10 @@ pub mod checker {
238
238
) ) ?
239
239
. get_tx_num ( ) as u64 )
240
240
} )
241
- . map_or_else (
242
- |e| bail ! ( "circuit capacity checker (id: {id}) error in get_tx_num: {e:?}" ) ,
243
- |result| result,
244
- )
241
+ . map_or_else (
242
+ |e| bail ! ( "circuit capacity checker (id: {id}) error in get_tx_num: {e:?}" ) ,
243
+ |result| result,
244
+ )
245
245
}
246
246
247
247
/// # Safety
@@ -272,10 +272,10 @@ pub mod checker {
272
272
. set_light_mode ( light_mode) ;
273
273
Ok ( ( ) )
274
274
} )
275
- . map_or_else (
276
- |e| bail ! ( "circuit capacity checker (id: {id}) error in set_light_mode: {e:?}" ) ,
277
- |result| result,
278
- )
275
+ . map_or_else (
276
+ |e| bail ! ( "circuit capacity checker (id: {id}) error in set_light_mode: {e:?}" ) ,
277
+ |result| result,
278
+ )
279
279
}
280
280
}
281
281
You can’t perform that action at this time.
0 commit comments