fix : clippy #48

Merged
esy merged 2 commits from main into main 2024-02-18 01:46:12 +00:00
Showing only changes of commit 25c85fe076 - Show all commits

View file

@ -283,7 +283,7 @@ pub fn uid_to_dn(uid: &str) -> String {
format!("uid={},ou=users,dc=skynet,dc=ie", uid) 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() { if users.is_empty() {
return Ok(()); return Ok(());
} }