From f0926ebfcc94f49fde588b22aa362186190def01 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Mon, 2 Dec 2024 12:33:29 +0100 Subject: [PATCH] Cleanup --- apps/desktop/desktop_native/core/src/lib.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/desktop/desktop_native/core/src/lib.rs b/apps/desktop/desktop_native/core/src/lib.rs index 74f5e1423d5..fe3f0f96a18 100644 --- a/apps/desktop/desktop_native/core/src/lib.rs +++ b/apps/desktop/desktop_native/core/src/lib.rs @@ -1,8 +1,3 @@ -pub use zeroizing_alloc::ZeroAlloc as ZeroizingAllocator; - -#[global_allocator] -static ALLOC: ZeroizingAllocator = ZeroizingAllocator(std::alloc::System); - #[cfg(feature = "sys")] pub mod biometric; #[cfg(feature = "sys")] @@ -20,3 +15,7 @@ pub mod powermonitor; pub mod ssh_agent; #[cfg(feature = "sys")] pub mod epheremal_values; + +pub use zeroizing_alloc::ZeroAlloc as ZeroizingAllocator; +#[global_allocator] +static ALLOC: ZeroizingAllocator = ZeroizingAllocator(std::alloc::System);