From 801c4aa2166d892ca4c24d73d6dda8ec6389a8e8 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Thu, 9 May 2019 12:31:26 -0300 Subject: [PATCH] Go through favorites instead --- src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 307918e..87b750b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,10 +8,10 @@ fn main() { .unwrap(); let client = cli::authenticate(registration).unwrap(); - println!("{:?}", client - .get_home_timeline().unwrap() - .items_iter() - .take(100) - .collect::>() - ); + client + .favourites().unwrap() + .items_iter() + .take(2) + .for_each(move |record| println!("{:#?}", record)) + ; }