From 46c71f7da39963226a0f68a8e3abbdb0022b40ed Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 16 Nov 2020 14:21:45 +0100 Subject: [PATCH] formatting fixup Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/tests/api2.rs | 12 +++++------- proxmox/src/tools/tfa/u2f.rs | 6 +++++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/proxmox-api-macro/tests/api2.rs b/proxmox-api-macro/tests/api2.rs index 2344aad4..950c5758 100644 --- a/proxmox-api-macro/tests/api2.rs +++ b/proxmox-api-macro/tests/api2.rs @@ -120,13 +120,11 @@ fn keyword_named_parameters_check() { &::proxmox::api::ApiHandler::Async(&api_function_keyword_named_parameters), &::proxmox::api::schema::ObjectSchema::new( "Returns nothing.", - &[ - ( - "type", - false, - &::proxmox::api::schema::StringSchema::new("The great Foo").schema(), - ), - ], + &[( + "type", + false, + &::proxmox::api::schema::StringSchema::new("The great Foo").schema(), + )], ), ) .protected(false); diff --git a/proxmox/src/tools/tfa/u2f.rs b/proxmox/src/tools/tfa/u2f.rs index 6697d7ee..bfc187c5 100644 --- a/proxmox/src/tools/tfa/u2f.rs +++ b/proxmox/src/tools/tfa/u2f.rs @@ -45,7 +45,11 @@ pub struct Registration { /// Attestation certificate (in DER format) from which we originally copied the `key_handle`. /// Not necessary for authentication, unless the hardware tokens should be restricted to /// specific provider identities. Optional. - #[serde(with = "bytes_as_base64", default, skip_serializing_if = "Vec::is_empty")] + #[serde( + with = "bytes_as_base64", + default, + skip_serializing_if = "Vec::is_empty" + )] pub certificate: Vec, }