diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/message.rs | 2 | ||||
| -rw-r--r-- | src/thread.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/message.rs b/src/message.rs index b253d68..83a834f 100644 --- a/src/message.rs +++ b/src/message.rs @@ -86,7 +86,7 @@ where } pub fn date(&self) -> i64 { - unsafe { ffi::notmuch_message_get_date(self.handle.ptr) } + unsafe { ffi::notmuch_message_get_date(self.handle.ptr) as i64 } } pub fn header(&self, name: &str) -> Result<Option<&str>> { diff --git a/src/thread.rs b/src/thread.rs index fce026d..8a8c1d7 100644 --- a/src/thread.rs +++ b/src/thread.rs @@ -94,12 +94,12 @@ where /// Get the date of the oldest message in 'thread' as a time_t value. pub fn oldest_date(self: &Self) -> i64 { - unsafe { ffi::notmuch_thread_get_oldest_date(self.handle.ptr) } + unsafe { ffi::notmuch_thread_get_oldest_date(self.handle.ptr) as i64 } } /// Get the date of the newest message in 'thread' as a time_t value. pub fn newest_date(self: &Self) -> i64 { - unsafe { ffi::notmuch_thread_get_newest_date(self.handle.ptr) } + unsafe { ffi::notmuch_thread_get_newest_date(self.handle.ptr) as i64 } } } |
