Skip to content

Commit e94003a

Browse files
committed
Removed Debug impls to de-clutter example
1 parent 3f750e1 commit e94003a

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

src/lib.rs

+2-15
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,8 @@
206206
//!
207207
//!
208208
//! ```
209-
//! use std::fmt;
210-
//!
211209
//! use once_cell::sync::OnceCell;
212210
//!
213-
//! #[derive(Debug)]
214211
//! pub struct LateInit<T> { cell: OnceCell<T> }
215212
//!
216213
//! impl<T> LateInit<T> {
@@ -240,24 +237,14 @@
240237
//! a: LateInit<&'a A<'a>>
241238
//! }
242239
//!
243-
//! impl fmt::Debug for A<'_> {
244-
//! fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
245-
//! write!(f, "A")
246-
//! }
247-
//! }
248-
//!
249-
//! impl fmt::Debug for B<'_> {
250-
//! fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
251-
//! write!(f, "B")
252-
//! }
253-
//! }
254240
//!
255241
//! fn build_cycle() {
256242
//! let a = A::default();
257243
//! let b = B::default();
258244
//! a.b.init(&b);
259245
//! b.a.init(&a);
260-
//! println!("{:?}", a.b.a.b.a);
246+
//!
247+
//! let _a = &a.b.a.b.a;
261248
//! }
262249
//! ```
263250
//!

0 commit comments

Comments
 (0)