diff options
| author | C. Morgan Hamill <me@cmhamill.org> | 2015-03-26 19:41:54 +0100 |
|---|---|---|
| committer | C. Morgan Hamill <me@cmhamill.org> | 2015-03-26 19:41:54 +0100 |
| commit | e4523dd5d6e2fe3f9afa99671baadfdf8eef5385 (patch) | |
| tree | 6977dbec192d49852fa57e5f9281a8a8c88febfa /src/ffi.rs | |
| parent | a2300c78a747124003c8415b805712aed31e4959 (diff) | |
| download | mail-e4523dd5d6e2fe3f9afa99671baadfdf8eef5385.tar.gz | |
Remove `NotmuchType` trait.
No longer necessary with the `From` and `Into` traits from std::convert.
Diffstat (limited to 'src/ffi.rs')
| -rw-r--r-- | src/ffi.rs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -18,7 +18,6 @@ use std::{ }; use utils::{ - NotmuchType, ToStr, }; @@ -68,7 +67,7 @@ impl notmuch_status_t { impl ToStr for NotmuchStatus { fn to_str<'a>(&self) -> Result<&'a str, str::Utf8Error> { unsafe { - notmuch_status_to_string(self.to_notmuch_t()) + notmuch_status_to_string((*self).into()) }.to_str() } } |
