Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/message/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/rc/strong.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/rc/weak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<UnsafeCell<*mut Object>>);

impl WeakPtr {
Expand Down