mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix formatting
Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
48faed54f7
commit
6af700d7bc
1 changed files with 7 additions and 2 deletions
|
@ -9,7 +9,12 @@ static ALLOC: Allocator = Allocator;
|
|||
|
||||
pub use crate::platform::*;
|
||||
|
||||
#[cfg(not(any(windows, feature = "use-system-allocator", feature = "use-mimalloc", target_env = "ohos")))]
|
||||
#[cfg(not(any(
|
||||
windows,
|
||||
feature = "use-system-allocator",
|
||||
feature = "use-mimalloc",
|
||||
target_env = "ohos"
|
||||
)))]
|
||||
mod platform {
|
||||
use std::os::raw::c_void;
|
||||
|
||||
|
@ -104,6 +109,6 @@ mod platform {
|
|||
|
||||
/// Memory allocation APIs compatible with libc
|
||||
pub mod libc_compat {
|
||||
pub use libmimalloc_sys::{ mi_free as free, mi_malloc as malloc, mi_realloc as realloc };
|
||||
pub use libmimalloc_sys::{mi_free as free, mi_malloc as malloc, mi_realloc as realloc};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue