This commit is contained in:
Mari 2022-09-06 23:11:40 +02:00 committed by masalachai
parent 63406ef308
commit 391df88509
1 changed files with 6 additions and 1 deletions

View File

@ -30,7 +30,12 @@ pub struct Login<'a> {
} }
impl<'a> Login<'a> { impl<'a> Login<'a> {
pub fn new(username: &'a str, password: &'a str, new_password: Option<&'a str>, ext_uris: Option<&'_ [&'a str]>) -> Self { pub fn new(
username: &'a str,
password: &'a str,
new_password: Option<&'a str>,
ext_uris: Option<&'_ [&'a str]>,
) -> Self {
let ext_uris = ext_uris.map(|uris| uris.iter().map(|&u| u.into()).collect()); let ext_uris = ext_uris.map(|uris| uris.iter().map(|&u| u.into()).collect());
Self { Self {