diff --git a/pbs-api-types/src/metrics.rs b/pbs-api-types/src/metrics.rs index be5ff27a..99df88a7 100644 --- a/pbs-api-types/src/metrics.rs +++ b/pbs-api-types/src/metrics.rs @@ -147,7 +147,6 @@ pub struct InfluxDbHttp { pub comment: Option, } - #[api] #[derive(Copy, Clone, Deserialize, Serialize, PartialEq, Eq, PartialOrd, Ord)] /// Type of the metric server diff --git a/pbs-api-types/src/node.rs b/pbs-api-types/src/node.rs index 704215bb..9033d586 100644 --- a/pbs-api-types/src/node.rs +++ b/pbs-api-types/src/node.rs @@ -1,9 +1,8 @@ -use serde::{Deserialize, Serialize}; use proxmox_schema::*; +use serde::{Deserialize, Serialize}; use crate::StorageStatus; - #[api] #[derive(Serialize, Deserialize, Default)] #[serde(rename_all = "kebab-case")] diff --git a/src/api2/admin/metrics.rs b/src/api2/admin/metrics.rs index d72bd98b..c299485f 100644 --- a/src/api2/admin/metrics.rs +++ b/src/api2/admin/metrics.rs @@ -4,7 +4,7 @@ use serde_json::Value; use proxmox_router::{Permission, Router, RpcEnvironment}; use proxmox_schema::api; -use pbs_api_types::{PRIV_SYS_AUDIT, MetricServerInfo}; +use pbs_api_types::{MetricServerInfo, PRIV_SYS_AUDIT}; use pbs_config::metrics; #[api( diff --git a/src/api2/admin/traffic_control.rs b/src/api2/admin/traffic_control.rs index 8d290c21..7e3d8b14 100644 --- a/src/api2/admin/traffic_control.rs +++ b/src/api2/admin/traffic_control.rs @@ -3,7 +3,7 @@ use anyhow::Error; use proxmox_router::{Permission, Router, RpcEnvironment}; use proxmox_schema::api; -use pbs_api_types::{TrafficControlRule, TrafficControlCurrentRate, PRIV_SYS_AUDIT}; +use pbs_api_types::{TrafficControlCurrentRate, TrafficControlRule, PRIV_SYS_AUDIT}; use crate::traffic_control_cache::TRAFFIC_CONTROL_CACHE; diff --git a/src/bin/proxmox_backup_manager/disk.rs b/src/bin/proxmox_backup_manager/disk.rs index 670ac713..fae8829f 100644 --- a/src/bin/proxmox_backup_manager/disk.rs +++ b/src/bin/proxmox_backup_manager/disk.rs @@ -350,10 +350,10 @@ pub fn filesystem_commands() -> CommandLineInterface { CliCommand::new(&API_METHOD_CREATE_DATASTORE_DISK) .arg_param(&["name"]) .completion_cb("disk", complete_disk_name), - ).insert( + ) + .insert( "delete", - CliCommand::new(&API_METHOD_DELETE_DATASTORE_DISK) - .arg_param(&["name"]), + CliCommand::new(&API_METHOD_DELETE_DATASTORE_DISK).arg_param(&["name"]), ); cmd_def.into()