1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

basic ldap

This commit is contained in:
Robin Appelman 2021-06-25 16:29:56 +02:00
commit 8f3405fabe
7 changed files with 286 additions and 9 deletions

View file

@ -135,8 +135,8 @@ impl HazeArgs {
let service = args
.peek()
.map(|s| s.as_ref())
.map(Service::from_type)
.flatten();
.and_then(Service::from_type)
.and_then(|list| list.first().cloned());
if service.is_some() {
let _ = args.next();
}