Fix usage of iterator in imag-bookmark

This commit is contained in:
Matthias Beyer 2016-10-18 10:12:37 +02:00
parent b07023fd3b
commit 45e0043b9d

View file

@ -127,8 +127,11 @@ fn list(rt: &Runtime) {
match collection.links() { match collection.links() {
Ok(links) => { Ok(links) => {
debug!("Listing..."); debug!("Listing...");
for (i, link) in links.iter().enumerate() { for (i, link) in links.enumerate() {
println!("{: >3}: {}", i, link); match link {
Ok(link) => println!("{: >3}: {}", i, link),
Err(e) => trace_error(&e)
}
}; };
debug!("... ready with listing"); debug!("... ready with listing");
}, },