Skip to content

Commit

Permalink
Fix lifetime longevity issue with themeing password prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyde46 committed Aug 6, 2023
1 parent 1952cbe commit b6ae81b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/gui/prompts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,15 @@ where
}

pub fn prompt_password_repeat(text: &str) -> String {
let theme = HoardTheme::default();
Password::with_theme(&theme)
Password::with_theme(&HoardTheme::default())
.with_prompt(text)
.with_confirmation("Repeat password", "Error: the passwords don't match.")
.interact()
.unwrap()
}

pub fn prompt_password(text: &str) -> String {
let theme = HoardTheme::default();
Password::with_theme(&theme)
Password::with_theme(&HoardTheme::default())
.with_prompt(text)
.interact()
.unwrap()
Expand Down

0 comments on commit b6ae81b

Please sign in to comment.