Merge pull request #2 from aprilabank/chore/cloneable-types
Make trivial types cloneable
This commit is contained in:
commit
f7d1a38da6
2 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "posix_mq"
|
name = "posix_mq"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
authors = ["Vincent Ambo <tazjin@gmail.com>"]
|
authors = ["Vincent Ambo <vincent@aprila.no>"]
|
||||||
description = "(Higher-level) Rust bindings to POSIX message queues"
|
description = "(Higher-level) Rust bindings to POSIX message queues"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/aprilabank/posix_mq.rs"
|
repository = "https://github.com/aprilabank/posix_mq.rs"
|
||||||
|
|
|
@ -26,7 +26,7 @@ TODO:
|
||||||
|
|
||||||
/// Wrapper type for queue names that performs basic validation of queue names before calling
|
/// Wrapper type for queue names that performs basic validation of queue names before calling
|
||||||
/// out to C code.
|
/// out to C code.
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub struct Name(CString);
|
pub struct Name(CString);
|
||||||
|
|
||||||
impl Name {
|
impl Name {
|
||||||
|
@ -58,7 +58,7 @@ impl Name {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub struct Message {
|
pub struct Message {
|
||||||
pub data: Vec<u8>,
|
pub data: Vec<u8>,
|
||||||
pub priority: u32,
|
pub priority: u32,
|
||||||
|
|
Loading…
Add table
Reference in a new issue