diff --git a/imag-link/src/main.rs b/imag-link/src/main.rs index 2c1cf5fb..8e2399df 100644 --- a/imag-link/src/main.rs +++ b/imag-link/src/main.rs @@ -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(())