diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-05-03T10·40+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-05-03T10·40+0200 |
commit | d8af25d58b971e885baf7b5437e909d70fa15d98 (patch) | |
tree | fbd23bfadd053cf5ff0c4c93b075c4a88548ac22 /src/lib.rs | |
parent | 232cf36f20fdd2ea46a4be14b6ba12ad85033c17 (diff) |
chore(lib): Make Name & Message types Clone and PartialEq
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs index a453222780ae..b8f2fed10b77 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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, |