From: Dominik Csapak <d.csapak@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 2/2] proxmox-backup-debug api: rustfmt fixes
Date: Tue, 8 Mar 2022 13:20:57 +0100 [thread overview]
Message-ID: <20220308122057.3059305-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20220308122057.3059305-1-d.csapak@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
src/bin/proxmox_backup_debug/api.rs | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/bin/proxmox_backup_debug/api.rs b/src/bin/proxmox_backup_debug/api.rs
index 64a4c01b..ba2117e4 100644
--- a/src/bin/proxmox_backup_debug/api.rs
+++ b/src/bin/proxmox_backup_debug/api.rs
@@ -8,8 +8,8 @@ use tokio::signal::unix::{signal, SignalKind};
use std::collections::HashMap;
use proxmox_router::{cli::*, ApiHandler, ApiMethod, RpcEnvironment, SubRoute};
-use proxmox_schema::{api, ApiType, ParameterSchema, Schema};
use proxmox_schema::format::DocumentationFormat;
+use proxmox_schema::{api, ApiType, ParameterSchema, Schema};
use pbs_api_types::{PROXMOX_UPID_REGEX, UPID};
use pbs_client::view_task_result;
@@ -23,7 +23,9 @@ const URL_ASCIISET: percent_encoding::AsciiSet = percent_encoding::NON_ALPHANUME
macro_rules! complete_api_path {
($capability:expr) => {
|complete_me: &str, _map: &HashMap<String, String>| {
- proxmox_async::runtime::block_on(async { complete_api_path_do(complete_me, $capability).await })
+ proxmox_async::runtime::block_on(async {
+ complete_api_path_do(complete_me, $capability).await
+ })
}
};
}
@@ -382,8 +384,7 @@ struct ApiDirEntry {
}
const LS_SCHEMA: &proxmox_schema::Schema =
- &proxmox_schema::ArraySchema::new("List of child links", &ApiDirEntry::API_SCHEMA)
- .schema();
+ &proxmox_schema::ArraySchema::new("List of child links", &ApiDirEntry::API_SCHEMA).schema();
async fn get_api_children(
path: String,
@@ -436,7 +437,11 @@ async fn get_api_children(
},
)]
/// Get API usage information for <path>
-async fn ls(path: Option<String>, mut param: Value, rpcenv: &mut dyn RpcEnvironment) -> Result<(), Error> {
+async fn ls(
+ path: Option<String>,
+ mut param: Value,
+ rpcenv: &mut dyn RpcEnvironment,
+) -> Result<(), Error> {
let output_format = extract_output_format(&mut param);
let options = TableFormatOptions::new()
--
2.30.2
next prev parent reply other threads:[~2022-03-08 12:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-08 12:20 [pbs-devel] [PATCH proxmox-backup 1/2] proxmox-backup-debug api: parse parameters before sending to api Dominik Csapak
2022-03-08 12:20 ` Dominik Csapak [this message]
2022-03-09 9:13 ` [pbs-devel] applied-series: " Wolfgang Bumiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220308122057.3059305-2-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox