Skip to content

Commit 76eef29

Browse files
committed
clean warnings
1 parent aa0a371 commit 76eef29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/alloc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use std::alloc::{GlobalAlloc, Layout, System};
22
use std::os::raw::c_void;
3-
use std::sync::atomic::{AtomicBool, Ordering::SeqCst, ATOMIC_BOOL_INIT};
3+
use std::sync::atomic::{AtomicBool, Ordering::SeqCst};
44

55
use crate::raw;
66

77
pub struct RedisAlloc;
88

9-
static USE_REDIS_ALLOC: AtomicBool = ATOMIC_BOOL_INIT;
9+
static USE_REDIS_ALLOC: AtomicBool = AtomicBool::new(false);
1010

1111
unsafe impl GlobalAlloc for RedisAlloc {
1212
unsafe fn alloc(&self, layout: Layout) -> *mut u8 {

0 commit comments

Comments
 (0)