fixed imag-link iterator error

This commit is contained in:
Andre Bogus 2016-05-03 01:23:06 +02:00
parent dfd6a9b0d3
commit 5ac661c334

View file

@ -297,7 +297,7 @@ fn set_links_for_entry(store: &Store, matches: &ArgMatches, entry: &mut FileLock
fn list_links_for_entry(store: &Store, entry: &mut FileLockEntry) {
let res = entry.get_external_links(store)
.and_then(|links| {
for (i, link) in links.enumerate() {
for (i, link) in links.iter().enumerate() {
println!("{: <3}: {}", i, link);
}
Ok(())