aboutsummaryrefslogtreecommitdiffstats
path: root/src/ffi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffi.rs')
-rw-r--r--src/ffi.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ffi.rs b/src/ffi.rs
index 3c281fa..373dc53 100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -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()
}