formatting fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-11-16 14:21:45 +01:00
parent 055793c481
commit 46c71f7da3
2 changed files with 10 additions and 8 deletions

View File

@ -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);

View File

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