mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 10:41:11 +08:00
chore: rustfmt 全量格式化——CI fmt check 差异清零
This commit is contained in:
@@ -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>>`),返回字节数。
|
||||
|
||||
Reference in New Issue
Block a user