diff --git a/src/message/mod.rs b/src/message/mod.rs index 86f80dcee..1b8aaa8fd 100644 --- a/src/message/mod.rs +++ b/src/message/mod.rs @@ -155,7 +155,7 @@ Currently, an error may be returned in two cases: * the encodings of the arguments do not match the encoding of the method and the `verify_message` feature is enabled */ -#[derive(Debug)] +#[derive(Debug, PartialEq)] pub struct MessageError(String); impl fmt::Display for MessageError { diff --git a/src/rc/strong.rs b/src/rc/strong.rs index d6e417172..14832a1c4 100644 --- a/src/rc/strong.rs +++ b/src/rc/strong.rs @@ -6,6 +6,7 @@ use crate::runtime::{Object, self}; use super::WeakPtr; /// A pointer that strongly references an object, ensuring it won't be deallocated. +#[derive(Debug, PartialEq)] pub struct StrongPtr(*mut Object); impl StrongPtr { diff --git a/src/rc/weak.rs b/src/rc/weak.rs index aa2f693e6..b784961d7 100644 --- a/src/rc/weak.rs +++ b/src/rc/weak.rs @@ -10,6 +10,7 @@ use super::StrongPtr; /// A pointer that weakly references an object, allowing to safely check /// whether it has been deallocated. +#[derive(Debug)] pub struct WeakPtr(Box>); impl WeakPtr {