diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-04-17 21:16:13 +0200 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-04-17 21:16:13 +0200 |
| commit | 1be0cc6ab7920208b3d6986dbb6076846d758c17 (patch) | |
| tree | 068ef89149b9719294272d4bdee81d7ff413519b /src/ffi.rs | |
| parent | caf1b053912d5fe5a893eb545bea20bfc4619d5d (diff) | |
| download | mail-1be0cc6ab7920208b3d6986dbb6076846d758c17.tar.gz | |
make clippy happy
Diffstat (limited to 'src/ffi.rs')
| -rw-r--r-- | src/ffi.rs | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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) } } } |
