From d8af25d58b971e885baf7b5437e909d70fa15d98 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 3 May 2018 12:40:06 +0200 Subject: [PATCH 1/2] chore(lib): Make Name & Message types Clone and PartialEq --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index a45322278..b8f2fed10 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, pub priority: u32, From ae1a57f29d0cc6ec9bb0eac4536c212b712bd611 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 3 May 2018 12:45:33 +0200 Subject: [PATCH 2/2] chore(cargo): Bump crate minor version --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8ca6c6cc5..db471168c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "posix_mq" -version = "0.1.2" -authors = ["Vincent Ambo "] +version = "0.1.3" +authors = ["Vincent Ambo "] description = "(Higher-level) Rust bindings to POSIX message queues" license = "MIT" repository = "https://github.com/aprilabank/posix_mq.rs"