From 93d42ad488890e3d1f21c9d909a0c554abfcd39b Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 9 Aug 2024 11:17:50 +0200 Subject: [PATCH] rrd: rustfmt and style fix Signed-off-by: Wolfgang Bumiller --- proxmox-rrd/src/api_types.rs | 4 ++-- proxmox-rrd/src/cache.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/proxmox-rrd/src/api_types.rs b/proxmox-rrd/src/api_types.rs index e41c8992..f0c4c9ff 100644 --- a/proxmox-rrd/src/api_types.rs +++ b/proxmox-rrd/src/api_types.rs @@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize}; use proxmox_schema::api; -#[api()] +#[api] #[derive(Copy, Clone, Serialize, Deserialize)] #[serde(rename_all = "UPPERCASE")] /// RRD consolidation mode @@ -13,7 +13,7 @@ pub enum RRDMode { Average, } -#[api()] +#[api] #[derive(Copy, Clone, Serialize, Deserialize)] #[serde(rename_all = "lowercase")] /// RRD time frame diff --git a/proxmox-rrd/src/cache.rs b/proxmox-rrd/src/cache.rs index c8a24d86..40405037 100644 --- a/proxmox-rrd/src/cache.rs +++ b/proxmox-rrd/src/cache.rs @@ -104,7 +104,7 @@ impl Cache { /// * cf=maximum,r=7*86400,n=570 => 10year /// /// The resulting data file size is about 80KB. - #[deprecated(note="Implement in client code")] + #[deprecated(note = "Implement in client code")] pub fn create_proxmox_backup_default_rrd(dst: DataSourceType) -> Database { use crate::rrd::Archive;