aboutsummaryrefslogtreecommitdiffstats
path: root/src/ffi.rs
diff options
context:
space:
mode:
authorC. Morgan Hamill <me@cmhamill.org>2015-03-26 19:41:54 +0100
committerC. Morgan Hamill <me@cmhamill.org>2015-03-26 19:41:54 +0100
commite4523dd5d6e2fe3f9afa99671baadfdf8eef5385 (patch)
tree6977dbec192d49852fa57e5f9281a8a8c88febfa /src/ffi.rs
parenta2300c78a747124003c8415b805712aed31e4959 (diff)
downloadmail-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.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ffi.rs b/src/ffi.rs
index 1ee940a..871cefd 100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -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()
}
}