]> git.proxmox.com Git - proxmox-perl-rs.git/commitdiff
pve: fix use vs mod grouping master
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 29 Aug 2024 08:30:20 +0000 (10:30 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 29 Aug 2024 08:31:31 +0000 (10:31 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
common/src/shared_cache.rs
pmg-rs/src/lib.rs
pve-rs/src/lib.rs

index ae688f604fe2e0a52a961529393bc50d650184ca..f045521e8f8be83162b41d5f0df77623cc8e7d14 100644 (file)
@@ -4,10 +4,11 @@ mod export {
 
     use anyhow::Error;
     use nix::sys::stat::Mode;
-    use perlmod::Value;
     use serde::Deserialize;
     use serde_json::Value as JSONValue;
 
+    use perlmod::Value;
+
     use proxmox_shared_cache::SharedCache;
     use proxmox_sys::fs::CreateOptions;
 
index 8bac823a11691ff292cf445b9baeb8b8e467f870..3db6966ab2636bef228f81c477e16a155e8fd155 100644 (file)
@@ -1,3 +1,7 @@
+use anyhow::Error;
+
+use proxmox_apt_api_types::APTUpdateInfo;
+
 #[path = "../common/src/mod.rs"]
 pub mod common;
 
@@ -6,10 +10,6 @@ pub mod apt;
 pub mod csr;
 pub mod tfa;
 
-use anyhow::Error;
-
-use proxmox_apt_api_types::APTUpdateInfo;
-
 #[perlmod::package(name = "Proxmox::Lib::PMG", lib = "pmg_rs")]
 mod export {
     use crate::common;
index 0fad7530beaab673a04bca07c353cb4101565293..5e47ac6b6b2f61db2f91068f432d4bae6b4a84ae 100644 (file)
@@ -1,5 +1,13 @@
 //! Rust library for the Proxmox VE code base.
 
+use std::collections::HashMap;
+
+use anyhow::Error;
+use serde_json::json;
+
+use proxmox_apt_api_types::APTUpdateInfo;
+use proxmox_notify::{Config, Notification, Severity};
+
 #[path = "../common/src/mod.rs"]
 pub mod common;
 
@@ -8,14 +16,6 @@ pub mod openid;
 pub mod resource_scheduling;
 pub mod tfa;
 
-use std::collections::HashMap;
-
-use anyhow::Error;
-
-use proxmox_apt_api_types::APTUpdateInfo;
-use proxmox_notify::{Config, Notification, Severity};
-use serde_json::json;
-
 #[perlmod::package(name = "Proxmox::Lib::PVE", lib = "pve_rs")]
 mod export {
     use proxmox_notify::context::pve::PVE_CONTEXT;