chore: Use print!
to print the password
This commit is contained in:
parent
44b5b3e09b
commit
8cf83c2775
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ pub struct Gen {
|
||||||
|
|
||||||
impl LprsCommand for Gen {
|
impl LprsCommand for Gen {
|
||||||
fn run(self, _vault_manager: Vaults) -> LprsResult<()> {
|
fn run(self, _vault_manager: Vaults) -> LprsResult<()> {
|
||||||
println!(
|
print!(
|
||||||
"{}",
|
"{}",
|
||||||
passwords::PasswordGenerator::new()
|
passwords::PasswordGenerator::new()
|
||||||
.length(self.length.get() as usize)
|
.length(self.length.get() as usize)
|
||||||
|
@ -52,7 +52,7 @@ impl LprsCommand for Gen {
|
||||||
.lowercase_letters(self.lowercase)
|
.lowercase_letters(self.lowercase)
|
||||||
.numbers(self.numbers)
|
.numbers(self.numbers)
|
||||||
.symbols(self.symbols)
|
.symbols(self.symbols)
|
||||||
.strict(true)
|
.strict(false)
|
||||||
.generate_one()
|
.generate_one()
|
||||||
.expect("The length cannot be zero")
|
.expect("The length cannot be zero")
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue