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

@ -1,6 +1,6 @@
use anyhow::{bail, Error};
use crate::tools::nom::{
use pbs_tools::nom::{
multispace0, multispace1, notspace1, IResult,
};

View File

@ -4,7 +4,7 @@ use anyhow::{bail, Error};
use serde::{Deserialize, Serialize};
use serde_json::{Map, Value};
use crate::tools::nom::{
use pbs_tools::nom::{
parse_complete, parse_error, parse_failure,
multispace0, multispace1, notspace1, parse_u64, IResult,
};

View File

@ -15,12 +15,6 @@ use proxmox_http::{
ProxyConfig,
};
pub use pbs_tools::json;
pub use pbs_tools::nom;
pub use pbs_tools::process_locker::{
ProcessLocker, ProcessLockExclusiveGuard, ProcessLockSharedGuard
};
pub mod apt;
pub mod async_io;
pub mod compression;
@ -40,9 +34,6 @@ pub use parallel_handler::ParallelHandler;
mod file_logger;
pub use file_logger::{FileLogger, FileLogOptions};
pub use pbs_tools::broadcast_future::{BroadcastData, BroadcastFuture};
pub use pbs_tools::ops::ControlFlow;
/// Shortcut for md5 sums.
pub fn md5sum(data: &[u8]) -> Result<DigestBytes, Error> {
hash(MessageDigest::md5(), data).map_err(Error::from)