From 1c20f406dcdcff08cee39159935ddac4e0e7c1d9 Mon Sep 17 00:00:00 2001 From: Dirk Van Haerenborgh Date: Mon, 5 Nov 2018 18:22:12 +0100 Subject: compacter trait object notations --- tests/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/main.rs b/tests/main.rs index 4a81792..4c74115 100644 --- a/tests/main.rs +++ b/tests/main.rs @@ -32,9 +32,7 @@ fn main() { let threads = Arc::new(::search_threads(query).unwrap()); - while let Some(thread) = as StreamingIteratorExt< - Thread>, - >>::next(threads.clone()) + while let Some(thread) = as StreamingIteratorExt<_>>::next(threads.clone()) { println!("thread {:?} {:?}", thread.subject(), thread.authors()); } -- cgit v1.2.1