diff --git a/proxmox-acme/src/eab.rs b/proxmox-acme/src/eab.rs index 9d044f30..f3221904 100644 --- a/proxmox-acme/src/eab.rs +++ b/proxmox-acme/src/eab.rs @@ -14,7 +14,7 @@ struct Protected { kid: String, } -#[cfg_attr(feature="api-types", proxmox_schema::api())] +#[cfg_attr(feature = "api-types", proxmox_schema::api())] /// External Account Bindings #[derive(Debug, Serialize, Deserialize, Clone, PartialEq)] #[serde(rename_all = "camelCase")] diff --git a/proxmox-auth-api/src/types.rs b/proxmox-auth-api/src/types.rs index c014a720..659f2807 100644 --- a/proxmox-auth-api/src/types.rs +++ b/proxmox-auth-api/src/types.rs @@ -25,9 +25,9 @@ use std::borrow::Borrow; use std::fmt; use anyhow::{bail, format_err, Error}; +use const_format::concatcp; use lazy_static::lazy_static; use serde::{Deserialize, Serialize}; -use const_format::concatcp; use proxmox_schema::{ api, const_regex, ApiStringFormat, ApiType, Schema, StringSchema, UpdaterType, diff --git a/proxmox-login/src/ticket.rs b/proxmox-login/src/ticket.rs index b37952c5..9543b70e 100644 --- a/proxmox-login/src/ticket.rs +++ b/proxmox-login/src/ticket.rs @@ -240,12 +240,12 @@ impl Authentication { } } -#[cfg(target_arch="wasm32")] +#[cfg(target_arch = "wasm32")] fn epoch_i64() -> i64 { (js_sys::Date::now() / 1000.0) as i64 } -#[cfg(not(target_arch="wasm32"))] +#[cfg(not(target_arch = "wasm32"))] fn epoch_i64() -> i64 { use std::time::{SystemTime, UNIX_EPOCH}; diff --git a/proxmox-rest-server/src/formatter.rs b/proxmox-rest-server/src/formatter.rs index d19d6805..793d6b1b 100644 --- a/proxmox-rest-server/src/formatter.rs +++ b/proxmox-rest-server/src/formatter.rs @@ -223,7 +223,10 @@ impl OutputFormatter for ExtJsFormatter { for (name, err) in param_err { errors.insert(name, err.to_string()); } - (String::from("parameter verification errors"), StatusCode::BAD_REQUEST) + ( + String::from("parameter verification errors"), + StatusCode::BAD_REQUEST, + ) } Err(err) => (err.to_string(), StatusCode::BAD_REQUEST), } @@ -233,7 +236,7 @@ impl OutputFormatter for ExtJsFormatter { } else { StatusCode::BAD_REQUEST }; - (err.to_string(), status) + (err.to_string(), status) }; let result = json!({