From 39bbc5365518a218d7f287de6151424e7137e033 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Thu, 20 Feb 2020 16:13:07 +0100 Subject: [PATCH] Remove obsolete .iter on vectors --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0bc05ff..4275534 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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!");