chore: rustfmt 全量格式化——CI fmt check 差异清零

This commit is contained in:
2026-09-09 15:14:57 +08:00
parent 3cf6618ae7
commit 64f582d34b
20 changed files with 135 additions and 115 deletions
+1 -3
View File
@@ -95,9 +95,7 @@ pub fn array_buffer_native_size(obj: &JsObject) -> u64 {
if data_ptr.is_null() {
return 0;
}
unsafe {
(std::mem::size_of::<Vec<u8>>() + (*data_ptr).capacity()) as u64
}
unsafe { (std::mem::size_of::<Vec<u8>>() + (*data_ptr).capacity()) as u64 }
}
/// 释放 ArrayBuffer 的字节缓冲(native_fn 槽中的 `Box<Vec<u8>>`),返回字节数。