From 9da0a5a2ffac1fef03ef02851c2c89d26d67d225 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Thu, 23 Mar 2017 11:22:51 -0400 Subject: [PATCH] impr: derive `Debug` impls Derive `Debug` impls for the `LazyCell` and `AtomicLazyCell` structs. --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 5aac5ec..6486ffb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,6 +48,7 @@ use std::cell::UnsafeCell; use std::sync::atomic::{AtomicUsize, Ordering}; /// A lazily filled `Cell`, with frozen contents. +#[derive(Debug)] pub struct LazyCell { inner: UnsafeCell>, } @@ -121,6 +122,7 @@ const LOCK: usize = 1; const SOME: usize = 2; /// A lazily filled `Cell`, with frozen contents. +#[derive(Debug)] pub struct AtomicLazyCell { inner: UnsafeCell>, state: AtomicUsize,