aboutsummaryrefslogtreecommitdiffstats
path: root/src/ffi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffi.rs')
-rw-r--r--src/ffi.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ffi.rs b/src/ffi.rs
index da862d8..6d2ceeb 100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -27,7 +27,7 @@ pub type notmuch_compact_status_cb_t = extern fn(*const c_char, *mut c_void);
notmuch_enum! {
#[repr(C)]
- #[derive(Copy, Debug)]
+ #[derive(Copy, Clone, Debug)]
pub enum notmuch_status_t => Status {
NOTMUCH_STATUS_SUCCESS => Success,
NOTMUCH_STATUS_OUT_OF_MEMORY => OutOfMemory,
@@ -86,7 +86,7 @@ impl error::Error for Status {
notmuch_enum! {
#[repr(C)]
- #[derive(Copy, Debug)]
+ #[derive(Copy, Clone, Debug)]
pub enum notmuch_database_mode_t => Mode {
NOTMUCH_DATABASE_MODE_READ_ONLY => ReadOnly,
NOTMUCH_DATABASE_MODE_READ_WRITE => ReadWrite
@@ -95,7 +95,7 @@ notmuch_enum! {
notmuch_enum! {
#[repr(C)]
- #[derive(Copy, Debug)]
+ #[derive(Copy, Clone, Debug)]
pub enum notmuch_sort_t => Sort {
NOTMUCH_SORT_OLDEST_FIRST => OldestFirst,
NOTMUCH_SORT_NEWEST_FIRST => NewestFirst,
@@ -106,7 +106,7 @@ notmuch_enum! {
notmuch_enum! {
#[repr(C)]
- #[derive(Copy, Debug)]
+ #[derive(Copy, Clone, Debug)]
pub enum notmuch_exclude_t => Exclude {
NOTMUCH_EXCLUDE_FLAG => Flag,
NOTMUCH_EXCLUDE_TRUE => True,
@@ -117,7 +117,7 @@ notmuch_enum! {
notmuch_enum! {
#[repr(C)]
- #[derive(Copy, Debug)]
+ #[derive(Copy, Clone, Debug)]
pub enum notmuch_message_flag_t => MessageFlag {
NOTMUCH_MESSAGE_FLAG_MATCH => Match,
NOTMUCH_MESSAGE_FLAG_EXCLUDED => Excluded,