]> git.proxmox.com Git - proxmox.git/commitdiff
tree-wide: run cargo fmt
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Mar 2024 16:04:17 +0000 (17:04 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Mar 2024 16:04:17 +0000 (17:04 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-acme/src/eab.rs
proxmox-auth-api/src/types.rs
proxmox-login/src/ticket.rs
proxmox-rest-server/src/formatter.rs

index 9d044f30146ddcf4de4ef2c875b09bcc16d069fa..f3221904e705ab1c453d6c507f03e1edd8c052c3 100644 (file)
@@ -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")]
index c014a720d67110fe4705525160bf331af6075aeb..659f28075d6a42d34cd2fcbef5378f10e35b1145 100644 (file)
@@ -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,
index b37952c5b194cd8b27e605b7dfffbda0ef5b9bd6..9543b70ee9dd3aeb5fbf5f00e195f9e2f8e0eecc 100644 (file)
@@ -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};
 
index d19d680549877d42fe5ee2664ca0c0e1778ca9ab..793d6b1ba31f9f32af63649b3c78e5f2fc3fb874 100644 (file)
@@ -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!({