avoid type re-exports

This commit is contained in:
Dietmar Maurer
2021-09-14 08:35:43 +02:00
parent cef5c72682
commit ccc3896ff3
9 changed files with 15 additions and 24 deletions

View File

@ -14,7 +14,7 @@ use crate::api2::types::{
KnownAcmeDirectory,
AcmeAccountName,
};
use crate::tools::ControlFlow;
use pbs_tools::ops::ControlFlow;
pub(crate) const ACME_DIR: &str = pbs_buildcfg::configdir!("/acme");
pub(crate) const ACME_ACCOUNT_DIR: &str = pbs_buildcfg::configdir!("/acme/accounts");

View File

@ -111,7 +111,7 @@ pub struct WebauthnConfig {
impl WebauthnConfig {
pub fn digest(&self) -> Result<[u8; 32], Error> {
let digest_data = crate::tools::json::to_canonical_json(&serde_json::to_value(self)?)?;
let digest_data = pbs_tools::json::to_canonical_json(&serde_json::to_value(self)?)?;
Ok(openssl::sha::sha256(&digest_data))
}
}