From 273b0204d4e305d253f7dd64fff79a6d6e12b018 Mon Sep 17 00:00:00 2001 From: Maximilian Date: Tue, 10 Jan 2023 11:22:51 -0600 Subject: [PATCH] Formatting --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index dc570fd..875600d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,11 @@ fn main() { // Generate a random string of length n let mut new_password = String::new(); for _ in 0..new_password_length { - new_password.push(allowed_chars.chars().nth(rand::random::() % allowed_chars.len()).unwrap()); + new_password.push( + allowed_chars.chars() + .nth(rand::random::() % allowed_chars.len()) + .unwrap() + ); } // Print the new password