Skip to content

Commit 79e71b2

Browse files
Fix clippy @ nightly
1 parent 85e7d49 commit 79e71b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/auth.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl ACL {
174174
if self.rust_teams {
175175
let url = format!("{}/permissions/crater.json", team_data::BASE_URL);
176176
let members: team_data::Permission = crate::utils::http::get_sync(&url)?.json()?;
177-
if members.github_ids.iter().any(|id| *id == user_id) {
177+
if members.github_ids.contains(&user_id) {
178178
return Ok(true);
179179
}
180180
}

0 commit comments

Comments
 (0)