mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-03 05:53:14 +00:00
tree-wide: run cargo fmt
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
dfe17914cf
commit
6c5248fbc6
@ -147,7 +147,6 @@ pub struct InfluxDbHttp {
|
||||
pub comment: Option<String>,
|
||||
}
|
||||
|
||||
|
||||
#[api]
|
||||
#[derive(Copy, Clone, Deserialize, Serialize, PartialEq, Eq, PartialOrd, Ord)]
|
||||
/// Type of the metric server
|
||||
|
@ -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")]
|
||||
|
@ -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(
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user