migration_tool: fix clippy warning

This commit is contained in:
Valentin Tolmer 2024-04-22 20:23:06 +02:00 committed by nitnelave
parent a97881477f
commit f67f090bde
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ impl TryFrom<ResultEntry> for User {
.attrs
.get("jpegPhoto")
.map(|v| v.iter().map(|s| s.as_bytes().to_vec()).collect::<Vec<_>>())
.or_else(|| entry.bin_attrs.get("jpegPhoto").map(Clone::clone))
.or_else(|| entry.bin_attrs.get("jpegPhoto").cloned())
.and_then(|v| v.into_iter().next().filter(|s| !s.is_empty()));
let password =
get_optional_attribute("userPassword").or_else(|| get_optional_attribute("password"));