Skip to content

Commit

Permalink
Removed Debug impls to de-clutter example
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-cooper committed Dec 24, 2022
1 parent 3f750e1 commit e94003a
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/lib.rs
Expand Up @@ -206,11 +206,8 @@
//!
//!
//! ```
//! use std::fmt;
//!
//! use once_cell::sync::OnceCell;
//!
//! #[derive(Debug)]
//! pub struct LateInit<T> { cell: OnceCell<T> }
//!
//! impl<T> LateInit<T> {
Expand Down Expand Up @@ -240,24 +237,14 @@
//! a: LateInit<&'a A<'a>>
//! }
//!
//! impl fmt::Debug for A<'_> {
//! fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
//! write!(f, "A")
//! }
//! }
//!
//! impl fmt::Debug for B<'_> {
//! fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
//! write!(f, "B")
//! }
//! }
//!
//! fn build_cycle() {
//! let a = A::default();
//! let b = B::default();
//! a.b.init(&b);
//! b.a.init(&a);
//! println!("{:?}", a.b.a.b.a);
//!
//! let _a = &a.b.a.b.a;
//! }
//! ```
//!
Expand Down

0 comments on commit e94003a

Please sign in to comment.