use api_string_type macro

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2021-05-04 12:19:30 +02:00
committed by Dietmar Maurer
parent ae5b1e188f
commit ee0c5c8e01
3 changed files with 9 additions and 65 deletions

View File

@ -198,7 +198,7 @@ fn register_account(
.unwrap_or_else(|| unsafe { AcmeAccountName::from_string_unchecked("default".to_string()) });
if Path::new(&crate::config::acme::account_path(&name)).exists() {
http_bail!(BAD_REQUEST, "account {:?} already exists", name);
http_bail!(BAD_REQUEST, "account {} already exists", name);
}
let directory = directory.unwrap_or_else(|| {
@ -327,7 +327,7 @@ pub fn deactivate_account(
Err(err) if !force => return Err(err),
Err(err) => {
worker.warn(format!(
"error deactivating account {:?}, proceedeing anyway - {}",
"error deactivating account {}, proceedeing anyway - {}",
name, err,
));
}