We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa0a371 commit 76eef29Copy full SHA for 76eef29
src/alloc.rs
@@ -1,12 +1,12 @@
1
use std::alloc::{GlobalAlloc, Layout, System};
2
use std::os::raw::c_void;
3
-use std::sync::atomic::{AtomicBool, Ordering::SeqCst, ATOMIC_BOOL_INIT};
+use std::sync::atomic::{AtomicBool, Ordering::SeqCst};
4
5
use crate::raw;
6
7
pub struct RedisAlloc;
8
9
-static USE_REDIS_ALLOC: AtomicBool = ATOMIC_BOOL_INIT;
+static USE_REDIS_ALLOC: AtomicBool = AtomicBool::new(false);
10
11
unsafe impl GlobalAlloc for RedisAlloc {
12
unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
0 commit comments