]> git.proxmox.com Git - proxmox-backup.git/blobdiff - src/config/acl.rs
switch from failure to anyhow
[proxmox-backup.git] / src / config / acl.rs
index adf1b9a60827f411da7fb9029196bd6a00fd6763..b3c783e8a41a7c77d6a4ac0b9d5b7280c79109a7 100644 (file)
@@ -3,7 +3,7 @@ use std::collections::{HashMap, HashSet, BTreeMap, BTreeSet};
 use std::path::{PathBuf, Path};
 use std::sync::{Arc, RwLock};
 
-use failure::*;
+use anyhow::{bail, Error};
 
 use lazy_static::lazy_static;
 
@@ -520,7 +520,7 @@ pub fn save_config(acl: &AclTree) -> Result<(), Error> {
 #[cfg(test)]
 mod test {
 
-    use failure::*;
+    use anyhow::{Error};
     use super::AclTree;
 
     fn check_roles(