Remove obsolete .iter on vectors

master
Trivernis 4 years ago
parent 509c07ff45
commit 39bbc53655

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

Loading…
Cancel
Save