From e3ac5de377c55ce6b90bbf361fec3275b94dba12 Mon Sep 17 00:00:00 2001 From: Corwin Date: Thu, 4 Aug 2022 19:26:55 +0100 Subject: [PATCH] make the allocators clonable --- agb/src/agb_alloc/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agb/src/agb_alloc/mod.rs b/agb/src/agb_alloc/mod.rs index d4e59fcc..79b10070 100644 --- a/agb/src/agb_alloc/mod.rs +++ b/agb/src/agb_alloc/mod.rs @@ -78,6 +78,7 @@ macro_rules! impl_zst_allocator { /// ); /// # } /// ``` +#[derive(Clone)] pub struct ExternalAllocator; impl_zst_allocator!(ExternalAllocator, GLOBAL_ALLOC); @@ -102,6 +103,7 @@ impl_zst_allocator!(ExternalAllocator, GLOBAL_ALLOC); /// ); /// # } /// ``` +#[derive(Clone)] pub struct InternalAllocator; impl_zst_allocator!(InternalAllocator, __IWRAM_ALLOC);