aboutsummaryrefslogtreecommitdiffstats
path: root/src/ffi.rs
diff options
context:
space:
mode:
authorDirk Van Haerenborgh <vhdirk@gmail.com>2018-04-17 21:16:13 +0200
committerDirk Van Haerenborgh <vhdirk@gmail.com>2018-04-17 21:16:13 +0200
commit1be0cc6ab7920208b3d6986dbb6076846d758c17 (patch)
tree068ef89149b9719294272d4bdee81d7ff413519b /src/ffi.rs
parentcaf1b053912d5fe5a893eb545bea20bfc4619d5d (diff)
downloadmail-1be0cc6ab7920208b3d6986dbb6076846d758c17.tar.gz
make clippy happy
Diffstat (limited to 'src/ffi.rs')
-rw-r--r--src/ffi.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ffi.rs b/src/ffi.rs
index 63c83ba..3c281fa 100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -59,10 +59,7 @@ impl notmuch_status_t {
}
pub fn as_result(self) -> Result<(), Self> {
- match self.is_ok() {
- true => Ok(()),
- false => Err(self),
- }
+ if self.is_ok() { Ok(()) } else { Err(self) }
}
}