浏览代码

Merge pull request #1779 from ehuss/redundant-import

Remove redundant imports
Jack Huey 1 年之前
父节点
当前提交
e9fe690d1d
共有 5 个文件被更改,包括 0 次插入5 次删除
  1. 0 1
      src/github.rs
  2. 0 1
      src/handlers/assign/tests/tests_from_diff.rs
  3. 0 1
      src/handlers/notification.rs
  4. 0 1
      src/handlers/rustc_commits.rs
  5. 0 1
      src/zulip.rs

+ 0 - 1
src/github.rs

@@ -9,7 +9,6 @@ use regex::Regex;
 use reqwest::header::{AUTHORIZATION, USER_AGENT};
 use reqwest::{Client, Request, RequestBuilder, Response, StatusCode};
 use std::collections::{HashMap, HashSet};
-use std::convert::TryInto;
 use std::{
     fmt,
     time::{Duration, SystemTime},

+ 0 - 1
src/handlers/assign/tests/tests_from_diff.rs

@@ -1,7 +1,6 @@
 //! Tests for `find_reviewers_from_diff`
 
 use super::super::*;
-use crate::config::AssignConfig;
 use crate::github::parse_diff;
 use std::fmt::Write;
 

+ 0 - 1
src/handlers/notification.rs

@@ -11,7 +11,6 @@ use crate::{
 };
 use anyhow::Context as _;
 use std::collections::HashSet;
-use std::convert::TryInto;
 use tracing as log;
 
 pub async fn handle(ctx: &Context, event: &Event) -> anyhow::Result<()> {

+ 0 - 1
src/handlers/rustc_commits.rs

@@ -7,7 +7,6 @@ use crate::{
 };
 use async_trait::async_trait;
 use std::collections::VecDeque;
-use std::convert::TryInto;
 use tracing as log;
 
 const BORS_GH_ID: u64 = 3372342;

+ 0 - 1
src/zulip.rs

@@ -5,7 +5,6 @@ use crate::handlers::docs_update::docs_update;
 use crate::handlers::pull_requests_assignment_update::get_review_prefs;
 use crate::handlers::Context;
 use anyhow::{format_err, Context as _};
-use std::convert::TryInto;
 use std::env;
 use std::fmt::Write as _;
 use tracing as log;