Skip to content

Commit fa320b6

Browse files
authored
Fix more clippy warnings (#8)
1 parent 49e605f commit fa320b6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/bin/match-pr-to-assignment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ async fn main() {
6262
register_sheet_id: "".to_owned(),
6363
course_schedule,
6464
}
65-
.with_assignments(&octocrab, &org_name)
65+
.with_assignments(&octocrab, org_name)
6666
.await
6767
.expect("Failed to get assignments");
68-
let module_prs = get_prs(&octocrab, &org_name, &module_name, true)
68+
let module_prs = get_prs(&octocrab, org_name, module_name, true)
6969
.await
7070
.expect("Failed to get PRs");
7171
let pr_in_question = module_prs

src/course.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ pub async fn get_batch_with_submissions(
598598
let pr_futures = course
599599
.modules
600600
.keys()
601-
.map(|module| get_prs(octocrab, &github_org, &module, true))
601+
.map(|module| get_prs(octocrab, github_org, module, true))
602602
.collect::<Vec<_>>();
603603
let prs_by_module = join_all(pr_futures)
604604
.await

src/endpoints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ pub async fn course_prs(
172172
let octocrab = octocrab.clone();
173173
let github_org = &server_state.config.github_org;
174174
futures.push(async move {
175-
let prs = get_prs(&octocrab, &github_org, &module, true).await?;
175+
let prs = get_prs(&octocrab, github_org, &module, true).await?;
176176
fill_in_reviewers(octocrab.clone(), github_org.to_owned(), prs).await
177177
});
178178
}

0 commit comments

Comments
 (0)