clippy: fix lint warning

This commit is contained in:
Valentin Tolmer 2021-06-15 23:11:02 +02:00 committed by nitnelave
parent c3bbcce6a3
commit b5c7e3b0d7

View File

@ -69,8 +69,8 @@ fn get_attribute(user: &User, attribute: &str) -> Result<Vec<String>> {
]), ]),
"uid" => Ok(vec![user.user_id.clone()]), "uid" => Ok(vec![user.user_id.clone()]),
"mail" => Ok(vec![user.email.clone()]), "mail" => Ok(vec![user.email.clone()]),
"givenName" => Ok(vec![user.first_name.clone().unwrap_or("".to_string())]), "givenName" => Ok(vec![user.first_name.clone().unwrap_or_default()]),
"sn" => Ok(vec![user.last_name.clone().unwrap_or("".to_string())]), "sn" => Ok(vec![user.last_name.clone().unwrap_or_default()]),
"cn" => Ok(vec![user "cn" => Ok(vec![user
.display_name .display_name
.clone() .clone()