Skip to content

Commit

Permalink
chore: Clean up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AshCorr committed Feb 21, 2022
1 parent 7e17fd9 commit da976d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/github.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::fmt::format;

use anyhow::{Context, Result};
use getset::Getters;
use serde::Deserialize;
Expand Down
7 changes: 3 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#[macro_use]
extern crate getset;

mod github;
Expand Down Expand Up @@ -56,7 +55,7 @@ async fn scan_repository(
let mut has_ignore_label = false;

for label in pull_request.labels() {
if (ignored_labels.contains(&label.name().as_str())) {
if ignored_labels.contains(&label.name().as_str()) {
info!(
"Ignoring PR {}({}) as it has an ignored label ({})",
pull_request.id(),
Expand All @@ -67,7 +66,7 @@ async fn scan_repository(
}
}

if (has_ignore_label) {
if has_ignore_label {
continue;
}

Expand Down Expand Up @@ -121,7 +120,7 @@ async fn main() -> Result<(), Error> {

let mut pull_requests_to_review: Vec<GithubPullRequest> = vec![];

for (index, repository) in repositories.iter().enumerate() {
for repository in repositories {
pull_requests_to_review.append(
&mut scan_repository(
repository.to_string(),
Expand Down

0 comments on commit da976d0

Please sign in to comment.