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, }