Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amunra committed Nov 8, 2024
1 parent 0d445e6 commit 185c944
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool> = std::cell::RefCell::new(true);
static GLOBAL_ALLOC_ALLOWED: std::cell::RefCell<bool> = const { std::cell::RefCell::new(true) };
}

struct NoPubCtor;
Expand Down Expand Up @@ -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 {}
Expand Down

0 comments on commit 185c944

Please sign in to comment.