Remove obsolete .iter on vectors

master
Trivernis 5 years ago
parent 509c07ff45
commit 39bbc53655

@ -178,9 +178,9 @@ fn create_dictionary(_opts: &Opts, args: &CreateDictionary) {
println!("Writing passwords to file...");
let mut fout = File::create(args.output.clone()).unwrap();
for entry in dictionary.iter() {
let key = base64::encode((*entry).1.as_slice());
let line = format!("{},{}\n", (*entry).0, key);
for entry in dictionary {
let key = base64::encode(entry.1.as_slice());
let line = format!("{},{}\n", entry.0, key);
fout.write(&line.into_bytes()).unwrap();
}
println!("Finished!");

Loading…
Cancel
Save