mirror of
https://github.com/lldap/lldap.git
synced 2024-11-25 09:06:03 +00:00
migration_tool: fix clippy warning
This commit is contained in:
parent
a97881477f
commit
f67f090bde
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue