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);