pve: fix use vs mod grouping

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-08-29 10:30:20 +02:00
parent dfd8a2e321
commit ae27b307b8
3 changed files with 14 additions and 13 deletions

View 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;

View 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;

View 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;