diff options
Diffstat (limited to 'tests/main.rs')
| -rw-r--r-- | tests/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/main.rs b/tests/main.rs index dd96644..05cd79f 100644 --- a/tests/main.rs +++ b/tests/main.rs @@ -1,5 +1,5 @@ -extern crate dirs; -extern crate notmuch; +use dirs; +use notmuch; use std::sync::Arc; @@ -30,9 +30,9 @@ fn main() { // let mut threads = db.create_query(&"".to_string()).unwrap().search_threads().unwrap(); - let threads = Arc::new(<Query as QueryExt>::search_threads(query).unwrap()); + let threads = Arc::new(<Query<'_> as QueryExt>::search_threads(query).unwrap()); - while let Some(thread) = <Threads<_> as StreamingIteratorExt<_>>::next(threads.clone()) + while let Some(thread) = <Threads<'_, _> as StreamingIteratorExt<_>>::next(threads.clone()) { println!("thread {:?} {:?}", thread.subject(), thread.authors()); } |
