mirror of
				https://git.proxmox.com/git/proxmox-perl-rs
				synced 2025-11-04 00:18:26 +00:00 
			
		
		
		
	cargo fmt
to get edition 2024 formatting Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
		
							parent
							
								
									bd65c27b29
								
							
						
					
					
						commit
						f52f31534c
					
				@ -3,7 +3,7 @@ mod export {
 | 
			
		||||
    use std::collections::HashMap;
 | 
			
		||||
    use std::sync::Mutex;
 | 
			
		||||
 | 
			
		||||
    use anyhow::{bail, Error};
 | 
			
		||||
    use anyhow::{Error, bail};
 | 
			
		||||
    use serde_json::Value as JSONValue;
 | 
			
		||||
 | 
			
		||||
    use perlmod::Value;
 | 
			
		||||
@ -27,7 +27,7 @@ mod export {
 | 
			
		||||
        CalendarMatcher, DeleteableMatcherProperty, FieldMatcher, MatchModeOperator, MatcherConfig,
 | 
			
		||||
        MatcherConfigUpdater, SeverityMatcher,
 | 
			
		||||
    };
 | 
			
		||||
    use proxmox_notify::{api, Config, Notification, Severity};
 | 
			
		||||
    use proxmox_notify::{Config, Notification, Severity, api};
 | 
			
		||||
 | 
			
		||||
    pub struct NotificationConfig {
 | 
			
		||||
        config: Mutex<Config>,
 | 
			
		||||
 | 
			
		||||
@ -4,7 +4,7 @@ pub mod export {
 | 
			
		||||
 | 
			
		||||
    use anyhow::Error;
 | 
			
		||||
 | 
			
		||||
    use perlmod::{to_value, Value};
 | 
			
		||||
    use perlmod::{Value, to_value};
 | 
			
		||||
 | 
			
		||||
    use proxmox_openid::{OpenIdAuthenticator, OpenIdConfig, PrivateAuthState};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,13 +1,13 @@
 | 
			
		||||
#[perlmod::package(name = "Proxmox::RS::Subscription")]
 | 
			
		||||
mod export {
 | 
			
		||||
    use anyhow::{bail, format_err, Error};
 | 
			
		||||
    use anyhow::{Error, bail, format_err};
 | 
			
		||||
 | 
			
		||||
    use proxmox_subscription::SubscriptionInfo;
 | 
			
		||||
    use proxmox_sys::fs::CreateOptions;
 | 
			
		||||
 | 
			
		||||
    use proxmox_http::client::sync::Client;
 | 
			
		||||
    use proxmox_http::HttpOptions;
 | 
			
		||||
    use proxmox_http::ProxyConfig;
 | 
			
		||||
    use proxmox_http::client::sync::Client;
 | 
			
		||||
 | 
			
		||||
    #[export]
 | 
			
		||||
    fn read_subscription(path: String) -> Result<Option<SubscriptionInfo>, Error> {
 | 
			
		||||
 | 
			
		||||
@ -2,7 +2,7 @@
 | 
			
		||||
//!
 | 
			
		||||
//! The functions in here are perl bindings.
 | 
			
		||||
 | 
			
		||||
use anyhow::{format_err, Error};
 | 
			
		||||
use anyhow::{Error, format_err};
 | 
			
		||||
use nix::sys::stat::Mode;
 | 
			
		||||
use proxmox_sys::fs::CreateOptions;
 | 
			
		||||
use serde::{Deserialize, Serialize};
 | 
			
		||||
 | 
			
		||||
@ -13,7 +13,7 @@ use std::os::unix::fs::OpenOptionsExt;
 | 
			
		||||
use std::os::unix::io::{AsRawFd, RawFd};
 | 
			
		||||
use std::path::{Path, PathBuf};
 | 
			
		||||
 | 
			
		||||
use anyhow::{bail, format_err, Error};
 | 
			
		||||
use anyhow::{Error, bail, format_err};
 | 
			
		||||
use nix::errno::Errno;
 | 
			
		||||
use nix::sys::stat::Mode;
 | 
			
		||||
 | 
			
		||||
@ -28,12 +28,12 @@ mod export {
 | 
			
		||||
    use std::convert::TryInto;
 | 
			
		||||
    use std::sync::Mutex;
 | 
			
		||||
 | 
			
		||||
    use anyhow::{bail, format_err, Error};
 | 
			
		||||
    use anyhow::{Error, bail, format_err};
 | 
			
		||||
    use serde_bytes::ByteBuf;
 | 
			
		||||
    use url::Url;
 | 
			
		||||
 | 
			
		||||
    use perlmod::Value;
 | 
			
		||||
    use proxmox_tfa::api::{methods, TfaResult};
 | 
			
		||||
    use proxmox_tfa::api::{TfaResult, methods};
 | 
			
		||||
 | 
			
		||||
    use super::{TfaConfig, UserAccess};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -3,18 +3,18 @@ mod export {
 | 
			
		||||
    use std::collections::HashMap;
 | 
			
		||||
    use std::{fs, io};
 | 
			
		||||
 | 
			
		||||
    use anyhow::{bail, Context, Error};
 | 
			
		||||
    use anyhow::{Context, Error, bail};
 | 
			
		||||
    use serde::Serialize;
 | 
			
		||||
 | 
			
		||||
    use proxmox_ve_config::{
 | 
			
		||||
        common::Allowlist,
 | 
			
		||||
        firewall::types::ipset::{IpsetAddress, IpsetEntry},
 | 
			
		||||
        firewall::types::Ipset,
 | 
			
		||||
        firewall::types::ipset::{IpsetAddress, IpsetEntry},
 | 
			
		||||
        guest::types::Vmid,
 | 
			
		||||
        sdn::{
 | 
			
		||||
            VnetName,
 | 
			
		||||
            config::{RunningConfig, SdnConfig},
 | 
			
		||||
            ipam::{Ipam, IpamJson},
 | 
			
		||||
            VnetName,
 | 
			
		||||
        },
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -3,7 +3,7 @@ mod export {
 | 
			
		||||
    use std::collections::HashMap;
 | 
			
		||||
    use std::sync::Mutex;
 | 
			
		||||
 | 
			
		||||
    use anyhow::{bail, Error};
 | 
			
		||||
    use anyhow::{Error, bail};
 | 
			
		||||
 | 
			
		||||
    use perlmod::Value;
 | 
			
		||||
    use proxmox_resource_scheduling::pve_static::{StaticNodeUsage, StaticServiceUsage};
 | 
			
		||||
 | 
			
		||||
@ -15,7 +15,7 @@ use std::os::unix::fs::OpenOptionsExt;
 | 
			
		||||
use std::os::unix::io::{AsRawFd, RawFd};
 | 
			
		||||
use std::path::{Path, PathBuf};
 | 
			
		||||
 | 
			
		||||
use anyhow::{bail, format_err, Error};
 | 
			
		||||
use anyhow::{Error, bail, format_err};
 | 
			
		||||
use nix::errno::Errno;
 | 
			
		||||
use nix::sys::stat::Mode;
 | 
			
		||||
use serde_json::Value as JsonValue;
 | 
			
		||||
@ -31,12 +31,12 @@ mod export {
 | 
			
		||||
    use std::convert::TryInto;
 | 
			
		||||
    use std::sync::Mutex;
 | 
			
		||||
 | 
			
		||||
    use anyhow::{bail, format_err, Error};
 | 
			
		||||
    use anyhow::{Error, bail, format_err};
 | 
			
		||||
    use serde_bytes::ByteBuf;
 | 
			
		||||
    use url::Url;
 | 
			
		||||
 | 
			
		||||
    use perlmod::Value;
 | 
			
		||||
    use proxmox_tfa::api::{methods, TfaResult};
 | 
			
		||||
    use proxmox_tfa::api::{TfaResult, methods};
 | 
			
		||||
 | 
			
		||||
    use super::{TfaConfig, UserAccess};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user