[PATCH proxmox-backup 1/4] pbs-config: reorganize crate use statements

Christian Ebner
2026-05-05T08:12:08Z

Follow along the style used throughout the rest of the codebase,
grouping and sorting use statements for crates by provenance.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
pbs-config/src/lib.rs | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/pbs-config/src/lib.rs b/pbs-config/src/lib.rs
index d1bc9f862..454eda2c9 100644
--- a/pbs-config/src/lib.rs
+++ b/pbs-config/src/lib.rs
@@ -1,3 +1,13 @@
+use std::os::unix::prelude::AsRawFd;
+
+use anyhow::{bail, format_err, Error};
+use hex::FromHex;
+use nix::unistd::{Gid, Group, Uid, User};
+
+use proxmox_sys::fs::DirLockGuard;
+
+pub use pbs_buildcfg::{BACKUP_GROUP_NAME, BACKUP_USER_NAME};
+
pub mod acl;
mod cached_user_info;
pub use cached_user_info::CachedUserInfo;
@@ -23,14 +33,6 @@ pub mod verify;
mod config_version_cache;
pub use config_version_cache::ConfigVersionCache;

-use anyhow::{bail, format_err, Error};
-use hex::FromHex;
-use nix::unistd::{Gid, Group, Uid, User};
-use proxmox_sys::fs::DirLockGuard;
-use std::os::unix::prelude::AsRawFd;
-
-pub use pbs_buildcfg::{BACKUP_GROUP_NAME, BACKUP_USER_NAME};
-
/// Return User info for the 'backup' user (``getpwnam_r(3)``)
pub fn backup_user() -> Result<nix::unistd::User, Error> {
if cfg!(test) {
--
2.47.3