mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 18:38:28 +00:00
Unconditionally implement Debug
for Handle
This commit is contained in:
parent
4bbf41644f
commit
32f2e92d64
@ -29,7 +29,7 @@ impl fmt::Display for OperationDisplay<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Eq, Ord, PartialEq, PartialOrd)]
|
||||
#[derive(Eq, Ord, PartialEq, PartialOrd)]
|
||||
pub struct Handle<T> {
|
||||
inner: Rc<T>,
|
||||
}
|
||||
@ -72,6 +72,14 @@ impl<T> Deref for Handle<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> fmt::Debug for Handle<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("Handle")
|
||||
.field("inner", &Rc::as_ptr(&self.inner))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct AnyOp {
|
||||
inner: Rc<dyn Operation>,
|
||||
|
Loading…
Reference in New Issue
Block a user