fix : clippy

This commit is contained in:
daragh 2024-02-18 00:37:28 +00:00
parent 96f86985ee
commit 25c85fe076
No known key found for this signature in database

View file

@ -283,7 +283,7 @@ pub fn uid_to_dn(uid: &str) -> String {
format!("uid={},ou=users,dc=skynet,dc=ie", uid)
}
pub async fn update_group(config: &Config, group: &str, users: &Vec<String>, replace: bool) -> tide::Result<()> {
pub async fn update_group(config: &Config, group: &str, users: &[String], replace: bool) -> tide::Result<()> {
if users.is_empty() {
return Ok(());
}