Apply cargo fmt

This commit is contained in:
Kim Minh Kaplan 2023-03-30 07:03:29 +00:00 committed by masalachai
parent 3868e136a6
commit 242bf3630f
1 changed files with 4 additions and 4 deletions

View File

@ -37,10 +37,10 @@ impl<'a> Login<'a> {
ext_uris: Option<&'_ [&'a str]>, ext_uris: Option<&'_ [&'a str]>,
) -> Self { ) -> Self {
let svc_ext = match ext_uris { let svc_ext = match ext_uris {
Some(uris) if ! uris.is_empty() => Some(ServiceExtension { Some(uris) if !uris.is_empty() => Some(ServiceExtension {
ext_uris: Some(uris.iter().map(|&u| u.into()).collect()) ext_uris: Some(uris.iter().map(|&u| u.into()).collect()),
}), }),
_ => None _ => None,
}; };
Self { Self {
@ -57,7 +57,7 @@ impl<'a> Login<'a> {
contact::XMLNS.into(), contact::XMLNS.into(),
domain::XMLNS.into(), domain::XMLNS.into(),
], ],
svc_ext svc_ext,
}, },
} }
} }