diff options
| author | eaon <eaon@mit.edu> | 2018-12-09 18:48:24 +0100 |
|---|---|---|
| committer | eaon <eaon@mit.edu> | 2018-12-09 18:54:41 +0100 |
| commit | b5b0f7e97abe0dbd5b54a1fc69e764a124c271b2 (patch) | |
| tree | 54c4add85514a3ccb718985682b7c8312c4a5128 /tests | |
| parent | c3d26cd116b51687b2fa43a22d3d0c2856cb093b (diff) | |
| download | mail-b5b0f7e97abe0dbd5b54a1fc69e764a124c271b2.tar.gz | |
Edition 2018 hit stable 🙌
Diffstat (limited to 'tests')
| -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()); } |
