]> git.proxmox.com Git - proxmox.git/commit
ldap: avoid superfluous allocation when calling .search()
authorChristoph Heiss <c.heiss@proxmox.com>
Fri, 12 Jan 2024 16:15:56 +0000 (17:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Mar 2024 16:03:27 +0000 (17:03 +0100)
commit84fbfb22ecf158e08c529a86f52ad7933054734d
tree6e7bb529288379b3f79f40167b5c409b7f4e0513
parent78bf05a458592ffe9a6a741bdd2d226bc5d84e25
ldap: avoid superfluous allocation when calling .search()

The `attrs` parameter of `Ldap::search()` is an `impl AsRef<[impl
AsRef<str>]>` anyway, so replace `vec![..]` with `&[..]`.

Suggested-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-ldap/src/lib.rs