From 228e7665bc4dc20929ea2a8cb52600da3d4dd839 Mon Sep 17 00:00:00 2001 From: Dirk Van Haerenborgh Date: Sun, 4 Nov 2018 21:11:59 +0100 Subject: add MessageExt trait --- tests/main.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/main.rs b/tests/main.rs index fd7e511..11723b2 100644 --- a/tests/main.rs +++ b/tests/main.rs @@ -4,6 +4,7 @@ extern crate dirs; use std::sync::Arc; use notmuch::StreamingIterator; +use notmuch::{Query, QueryExt}; fn main() { @@ -25,11 +26,14 @@ fn main() { }; - let mut threads = query.search_threads().unwrap(); + // let mut threads = query.search_threads().unwrap(); - //let mut threads = db.create_query(&"".to_string()).unwrap().search_threads().unwrap(); + // let mut threads = db.create_query(&"".to_string()).unwrap().search_threads().unwrap(); + + let mut threads = ::search_threads(query).unwrap(); + while let Some(thread) = threads.next() { println!("thread {:?} {:?}", thread.subject(), thread.authors()); -- cgit v1.2.1