Closed codegod100 closed 1 day ago
impl<T: fmt::Debug> fmt::Debug for BelongsTo<T> { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { self.value.as_ref().unwrap().fmt(fmt) } }
as_ref() is None when I try to println one of my structs and throws a panic
as_ref()
None
println
https://github.com/tokio-rs/toasty/pull/2
See #6
/src/toasty/src/relation/belongs_to.rs:36:29:
as_ref()
isNone
when I try toprintln
one of my structs and throws a panic