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() {
|
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");
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue