diff options
Diffstat (limited to 'src/ffi.rs')
| -rw-r--r-- | src/ffi.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -47,14 +47,14 @@ notmuch_enum! { } impl notmuch_status_t { - pub fn is_ok(&self) -> bool { - match *self { + pub fn is_ok(self) -> bool { + match self { notmuch_status_t::NOTMUCH_STATUS_SUCCESS => true, _ => false, } } - pub fn is_err(&self) -> bool { + pub fn is_err(self) -> bool { !self.is_ok() } |
