mirror of https://github.com/lldap/lldap.git
migration_tool: fix clippy warning
This commit is contained in:
parent
a97881477f
commit
f67f090bde
|
@ -182,7 +182,7 @@ impl TryFrom<ResultEntry> for User {
|
||||||
.attrs
|
.attrs
|
||||||
.get("jpegPhoto")
|
.get("jpegPhoto")
|
||||||
.map(|v| v.iter().map(|s| s.as_bytes().to_vec()).collect::<Vec<_>>())
|
.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()));
|
.and_then(|v| v.into_iter().next().filter(|s| !s.is_empty()));
|
||||||
let password =
|
let password =
|
||||||
get_optional_attribute("userPassword").or_else(|| get_optional_attribute("password"));
|
get_optional_attribute("userPassword").or_else(|| get_optional_attribute("password"));
|
||||||
|
|
Loading…
Reference in New Issue