From 185c944a17f40c7f970a01b1a2de63da8e51aee1 Mon Sep 17 00:00:00 2001 From: Adam Cimarosti Date: Fri, 8 Nov 2024 16:36:02 +0000 Subject: [PATCH] clippy --- src/testing.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/testing.rs b/src/testing.rs index 7650da6..7998b27 100644 --- a/src/testing.rs +++ b/src/testing.rs @@ -5,7 +5,7 @@ use core::sync::atomic::{AtomicUsize, Ordering}; use std::alloc::{AllocError, Allocator, Global, GlobalAlloc, Layout, System}; thread_local! { - static GLOBAL_ALLOC_ALLOWED: std::cell::RefCell = std::cell::RefCell::new(true); + static GLOBAL_ALLOC_ALLOWED: std::cell::RefCell = const { std::cell::RefCell::new(true) }; } struct NoPubCtor; @@ -184,10 +184,6 @@ impl WatermarkAllocator2 { let inner = WatermarkAllocator::new(watermark); Self(inner) } - - pub fn in_use(&self) -> usize { - self.0.in_use() - } } impl Claim for WatermarkAllocator2 {}