From 8cf83c2775fb5d1ba65c205c91deb934c1cffdea Mon Sep 17 00:00:00 2001 From: Awiteb Date: Fri, 10 May 2024 05:08:48 +0300 Subject: [PATCH] chore: Use `print!` to print the password --- src/cli/gen_command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/gen_command.rs b/src/cli/gen_command.rs index 10f423c..305ad6d 100644 --- a/src/cli/gen_command.rs +++ b/src/cli/gen_command.rs @@ -44,7 +44,7 @@ pub struct Gen { impl LprsCommand for Gen { fn run(self, _vault_manager: Vaults) -> LprsResult<()> { - println!( + print!( "{}", passwords::PasswordGenerator::new() .length(self.length.get() as usize) @@ -52,7 +52,7 @@ impl LprsCommand for Gen { .lowercase_letters(self.lowercase) .numbers(self.numbers) .symbols(self.symbols) - .strict(true) + .strict(false) .generate_one() .expect("The length cannot be zero") );