From c4c1f9bc36cfae6e7b52cb483478d64b7e518da7 Mon Sep 17 00:00:00 2001 From: Meadow Liu Date: Mon, 19 Aug 2024 17:54:11 -0700 Subject: [PATCH] maybe these won't count towards code coverage..? dontmesswithmycodecoverage lol --- src/memory_usage/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/memory_usage/mod.rs b/src/memory_usage/mod.rs index 1297fc34e..0fa0be464 100644 --- a/src/memory_usage/mod.rs +++ b/src/memory_usage/mod.rs @@ -33,8 +33,8 @@ pub trait MemoryUsageConst: Sized + MemoryUsageStatic { const MEM_USE_CONST: usize; } -fn _assert_mem_use_obj_safe(_: &dyn MemoryUsage) {} -fn _assert_mem_use_static_obj_safe(_: &dyn MemoryUsageStatic) {} +const _: &dyn MemoryUsage = &0u8; +const _: &dyn MemoryUsageStatic = &0u8; // const is not object safe /// Provides an impl of [`MemoryUsage::mem_use_stack`]