diff --git a/crates/main/src/result.rs b/crates/main/src/result.rs index 1e27552..59d0113 100644 --- a/crates/main/src/result.rs +++ b/crates/main/src/result.rs @@ -27,14 +27,20 @@ static mut RESULT_SIZE: AtomicUsize = AtomicUsize::new(0); #[no_mangle] pub unsafe fn get_result_ptr() -> usize { - log(format!("sdk.get_result_ptr, returns {}\n", *RESULT_PTR.get_mut())); + log(format!( + "sdk.get_result_ptr, returns {}\n", + *RESULT_PTR.get_mut() + )); *RESULT_PTR.get_mut() } #[no_mangle] pub unsafe fn get_result_size() -> usize { - log(format!("sdk.get_result_size, returns {}\n", *RESULT_SIZE.get_mut())); + log(format!( + "sdk.get_result_size, returns {}\n", + *RESULT_SIZE.get_mut() + )); *RESULT_SIZE.get_mut() } diff --git a/crates/wit/src/token_stream_generator/record_generator.rs b/crates/wit/src/token_stream_generator/record_generator.rs index d2f8435..4bc2a65 100644 --- a/crates/wit/src/token_stream_generator/record_generator.rs +++ b/crates/wit/src/token_stream_generator/record_generator.rs @@ -108,8 +108,6 @@ fn generate_deserializer_fn(record: &fce_ast_types::AstRecordItem) -> proc_macro #deserializer - std::mem::forget(raw_record); - #type_constructor } }