diff options
Diffstat (limited to 'src/threads.rs')
| -rw-r--r-- | src/threads.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/threads.rs b/src/threads.rs index dadb137..ebfa52c 100644 --- a/src/threads.rs +++ b/src/threads.rs @@ -46,8 +46,9 @@ impl<'q, 'd> iter::Iterator for Threads<'q, 'd> { } let cthread = unsafe { + let t = ffi::notmuch_threads_get(self.0); ffi::notmuch_threads_move_to_next(self.0); - ffi::notmuch_threads_get(self.0) + t }; Some(Self::Item::new(cthread)) |
