diff options
| author | rhn <gihu.rhn@porcupinefactory.org> | 2018-04-13 11:22:42 +0200 |
|---|---|---|
| committer | rhn <gihu.rhn@porcupinefactory.org> | 2018-04-13 11:27:27 +0200 |
| commit | 088ad8644f91448853754bbf189f52c81a5bc695 (patch) | |
| tree | d4c76943f1f988e71cf3ffb66a28aa77627c0463 | |
| parent | 1f2c854d2045257352363b80559332cea4e24dcd (diff) | |
| download | mail-088ad8644f91448853754bbf189f52c81a5bc695.tar.gz | |
Make 0.26 functions available after setting "0.26" config
| -rw-r--r-- | src/message.rs | 2 | ||||
| -rw-r--r-- | src/thread.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/message.rs b/src/message.rs index 6edfd7e..ec4473f 100644 --- a/src/message.rs +++ b/src/message.rs @@ -52,7 +52,7 @@ impl<'q, 'd> Message<'q, 'd>{ ffi::notmuch_message_get_replies(self.0) }) } - +#[cfg(feature = "0.26")] pub fn count_files(self: &Self) -> i32 { unsafe { diff --git a/src/thread.rs b/src/thread.rs index 9148c44..98832a6 100644 --- a/src/thread.rs +++ b/src/thread.rs @@ -46,7 +46,7 @@ impl<'q, 'd> Thread<'q, 'd>{ ffi::notmuch_thread_get_total_messages(self.0) } } - +#[cfg(feature = "0.26")] pub fn total_files(self: &Self) -> i32{ unsafe { ffi::notmuch_thread_get_total_files(self.0) |
