tree-wide: run cargo fmt
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
0475421498
commit
d73eb3dcf1
@ -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")]
|
||||
|
@ -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,
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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!({
|
||||
|
Loading…
Reference in New Issue
Block a user