diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-11-04 21:11:59 +0100 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-11-04 21:11:59 +0100 |
| commit | 228e7665bc4dc20929ea2a8cb52600da3d4dd839 (patch) | |
| tree | 8ec41c3fc3db0c470c717befa08568010d2bed7f /tests | |
| parent | 08aa3be11a25c8ccbdf4806a4a08c9267cae9140 (diff) | |
| download | mail-228e7665bc4dc20929ea2a8cb52600da3d4dd839.tar.gz | |
add MessageExt trait
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/main.rs | 8 |
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()); |
