Skip to content

Commit 10b3a86

Browse files
committed
applease our benevolent overlord clippy
1 parent 525ed8c commit 10b3a86

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/github.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl GitHubApi {
8686
.send()?
8787
.error_for_status()?
8888
.json()?;
89-
if let Some(error) = res.errors.iter().next() {
89+
if let Some(error) = res.errors.get(0) {
9090
bail!("graphql error: {}", error.message);
9191
} else if let Some(data) = res.data {
9292
Ok(data)

src/validate.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ macro_rules! checks {
1717
}
1818
}
1919

20+
#[allow(clippy::type_complexity)]
2021
static CHECKS: &[Check<fn(&Data, &mut Vec<String>)>] = checks![
2122
validate_name_prefixes,
2223
validate_subteam_of,
@@ -39,6 +40,7 @@ static CHECKS: &[Check<fn(&Data, &mut Vec<String>)>] = checks![
3940
validate_project_groups_have_parent_teams,
4041
];
4142

43+
#[allow(clippy::type_complexity)]
4244
static GITHUB_CHECKS: &[Check<fn(&Data, &GitHubApi, &mut Vec<String>)>] =
4345
checks![validate_github_usernames,];
4446

0 commit comments

Comments
 (0)