aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/main.rs8
1 files changed, 6 insertions, 2 deletions
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 = <Query as QueryExt>::search_threads(query).unwrap();
+
while let Some(thread) = threads.next() {
println!("thread {:?} {:?}", thread.subject(), thread.authors());