diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-10-18 10:12:37 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-10-19 13:03:17 +0200 |
commit | 45e0043b9dcc9a98fa9dbb1f7e1ec1745322549e (patch) | |
tree | d804031dac2d96ad7905681472c440ef84394d56 /imag-bookmark | |
parent | b07023fd3b0f2250911f2e8fbf5edd0221e3bfae (diff) |
Fix usage of iterator in imag-bookmark
Diffstat (limited to 'imag-bookmark')
-rw-r--r-- | imag-bookmark/src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/imag-bookmark/src/main.rs b/imag-bookmark/src/main.rs index dd4e20a6..2a726b5b 100644 --- a/imag-bookmark/src/main.rs +++ b/imag-bookmark/src/main.rs @@ -127,8 +127,11 @@ fn list(rt: &Runtime) { match collection.links() { Ok(links) => { debug!("Listing..."); - for (i, link) in links.iter().enumerate() { - println!("{: >3}: {}", i, link); + for (i, link) in links.enumerate() { + match link { + Ok(link) => println!("{: >3}: {}", i, link), + Err(e) => trace_error(&e) + } }; debug!("... ready with listing"); }, |