diff --git a/src/lib.rs b/src/lib.rs index 1ddcc0f..0137a46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,7 +48,7 @@ use std::cell::UnsafeCell; use std::sync::atomic::{AtomicUsize, Ordering}; /// A lazily filled `Cell`, with frozen contents. -#[derive(Debug)] +#[derive(Debug, Default)] pub struct LazyCell { inner: UnsafeCell>, } @@ -155,7 +155,7 @@ const LOCK: usize = 1; const SOME: usize = 2; /// A lazily filled `Cell`, with frozen contents. -#[derive(Debug)] +#[derive(Debug, Default)] pub struct AtomicLazyCell { inner: UnsafeCell>, state: AtomicUsize,