fix bad prompt_passwd for pgp config

This commit is contained in:
Clément DOUIN 2024-01-09 21:37:53 +01:00
parent 6f9f75cfd2
commit 6fcdf7ea10
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72

View file

@ -8,7 +8,7 @@ use log::info;
#[cfg(any(feature = "imap", feature = "smtp"))] #[cfg(any(feature = "imap", feature = "smtp"))]
use log::{debug, warn}; use log::{debug, warn};
#[cfg(any(feature = "imap", feature = "smtp"))] #[cfg(any(feature = "imap", feature = "smtp", feature = "pgp"))]
use crate::ui::prompt; use crate::ui::prompt;
use crate::{account::arg::name::AccountNameArg, config::TomlConfig, printer::Printer}; use crate::{account::arg::name::AccountNameArg, config::TomlConfig, printer::Printer};
@ -100,7 +100,7 @@ impl AccountConfigureCommand {
if let Some(ref config) = account_config.pgp { if let Some(ref config) = account_config.pgp {
config config
.configure(&account_config.email, || { .configure(&account_config.email, || {
prompt_passwd("PGP secret key password") prompt::passwd("PGP secret key password")
}) })
.await?; .await?;
} }