about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTatriX <tatrics@gmail.com>2018-05-03T10·48+0200
committerGitHub <noreply@github.com>2018-05-03T10·48+0200
commitf7d1a38da67e92e0e87dbb988d288f0be2714f5c (patch)
tree8cb7df17c68cd343552d08dd0284019444d832ff
parent232cf36f20fdd2ea46a4be14b6ba12ad85033c17 (diff)
parentae1a57f29d0cc6ec9bb0eac4536c212b712bd611 (diff)
Merge pull request #2 from aprilabank/chore/cloneable-types
Make trivial types cloneable
-rw-r--r--Cargo.toml4
-rw-r--r--src/lib.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 8ca6c6cc5921..db471168c773 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
 [package]
 name = "posix_mq"
-version = "0.1.2"
-authors = ["Vincent Ambo <tazjin@gmail.com>"]
+version = "0.1.3"
+authors = ["Vincent Ambo <vincent@aprila.no>"]
 description = "(Higher-level) Rust bindings to POSIX message queues"
 license = "MIT"
 repository = "https://github.com/aprilabank/posix_mq.rs"
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,