From 6af700d7bced327c745099b16048abb2975c89fb Mon Sep 17 00:00:00 2001 From: webbeef Date: Mon, 2 Jun 2025 23:18:00 -0700 Subject: [PATCH] Fix formatting Signed-off-by: webbeef --- components/allocator/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/allocator/lib.rs b/components/allocator/lib.rs index 8c15d42b342..db801b14f31 100644 --- a/components/allocator/lib.rs +++ b/components/allocator/lib.rs @@ -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}; } }