Fix usage of iterator in imag-bookmark
This commit is contained in:
parent
b07023fd3b
commit
45e0043b9d
1 changed files with 5 additions and 2 deletions
|
@ -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");
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue