From 6811f15aba1548408f97c31a53c5276785cfb951 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Mon, 13 Jul 2020 09:18:11 +0700 Subject: [PATCH] Using hashmap to do the deduplicating --- src/main.rs | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3875364..c26c4b0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,7 @@ use std::fs; use std::io::Write; use std::sync::Arc; use std::time::Duration; +use std::collections::HashSet; use structopt::StructOpt; use validator::Validate; use gio::TlsAuthenticationMode; @@ -182,22 +183,23 @@ fn get_permitted_users(users: &Vec, current_permitted_users: &Vec