chore(lib): Make Name & Message types Clone and PartialEq
This commit is contained in:
parent
232cf36f20
commit
d8af25d58b
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ TODO:
|
|||
|
||||
/// Wrapper type for queue names that performs basic validation of queue names before calling
|
||||
/// out to C code.
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct Name(CString);
|
||||
|
||||
impl Name {
|
||||
|
@ -58,7 +58,7 @@ impl Name {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct Message {
|
||||
pub data: Vec<u8>,
|
||||
pub priority: u32,
|
||||
|
|
Loading…
Reference in a new issue