imag-link: Fix iterator usage

This commit is contained in:
Matthias Beyer 2016-10-18 11:22:24 +02:00
parent 45e0043b9d
commit d857faf1e9

View file

@ -297,7 +297,10 @@ fn list_links_for_entry(store: &Store, entry: &mut FileLockEntry) {
entry.get_external_links(store)
.and_then(|links| {
for (i, link) in links.enumerate() {
println!("{: <3}: {}", i, link);
match link {
Ok(link) => println!("{: <3}: {}", i, link),
Err(e) => trace_error(&e),
}
}
Ok(())
})