diff --git a/proxmox-access-control/src/init.rs b/proxmox-access-control/src/init.rs index 75bcf8a4..3a5ce55b 100644 --- a/proxmox-access-control/src/init.rs +++ b/proxmox-access-control/src/init.rs @@ -1,10 +1,10 @@ +use std::collections::HashMap; +use std::path::{Path, PathBuf}; +use std::sync::OnceLock; + use anyhow::{format_err, Error}; + use proxmox_auth_api::types::{Authid, Userid}; -use std::{ - collections::HashMap, - path::{Path, PathBuf}, - sync::OnceLock, -}; static ACCESS_CONF: OnceLock<&'static dyn AccessControlConfig> = OnceLock::new(); static ACCESS_CONF_DIR: OnceLock = OnceLock::new(); diff --git a/proxmox-access-control/src/token_shadow.rs b/proxmox-access-control/src/token_shadow.rs index ab8925b7..60b71ac9 100644 --- a/proxmox-access-control/src/token_shadow.rs +++ b/proxmox-access-control/src/token_shadow.rs @@ -1,11 +1,11 @@ use std::collections::HashMap; use anyhow::{bail, format_err, Error}; -use proxmox_product_config::{open_api_lockfile, replace_config, ApiLockGuard}; use serde::{Deserialize, Serialize}; use serde_json::{from_value, Value}; use proxmox_auth_api::types::Authid; +use proxmox_product_config::{open_api_lockfile, replace_config, ApiLockGuard}; use crate::init::{token_shadow, token_shadow_lock}; diff --git a/proxmox-access-control/src/types.rs b/proxmox-access-control/src/types.rs index 88b91a9f..ae6de7cf 100644 --- a/proxmox-access-control/src/types.rs +++ b/proxmox-access-control/src/types.rs @@ -1,6 +1,6 @@ -use proxmox_auth_api::types::{Authid, Userid, PROXMOX_TOKEN_ID_SCHEMA}; use serde::{Deserialize, Serialize}; +use proxmox_auth_api::types::{Authid, Userid, PROXMOX_TOKEN_ID_SCHEMA}; use proxmox_schema::{ api, api_types::{COMMENT_SCHEMA, SINGLE_LINE_COMMENT_FORMAT},