From 2ce0218218995a6a4747bcacc33a09bbbb511200 Mon Sep 17 00:00:00 2001 From: Sam Rijs Date: Fri, 26 Jan 2018 23:41:59 +1100 Subject: [PATCH] clean up imports --- src/api.rs | 4 +--- src/engine/analyzer.rs | 7 ++----- src/engine/mod.rs | 4 ++-- src/models/crates.rs | 7 ------- 4 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/api.rs b/src/api.rs index dfe4c1d..0bfdfd8 100644 --- a/src/api.rs +++ b/src/api.rs @@ -1,10 +1,8 @@ use std::collections::BTreeMap; use futures::{Future, future}; -use hyper::{Client, Error as HyperError, Request, Response, StatusCode}; -use hyper::client::HttpConnector; +use hyper::{Error as HyperError, Request, Response, StatusCode}; use hyper::header::ContentType; -use hyper_tls::HttpsConnector; use semver::{Version, VersionReq}; use serde_json; use slog::Logger; diff --git a/src/engine/analyzer.rs b/src/engine/analyzer.rs index 2135fe1..6e1067b 100644 --- a/src/engine/analyzer.rs +++ b/src/engine/analyzer.rs @@ -1,9 +1,6 @@ -use std::collections::BTreeMap; -use std::collections::btree_map::{Entry as BTreeMapEntry}; +use semver::Version; -use semver::{Version, VersionReq}; - -use ::models::crates::{CrateName, CrateDeps, CrateRelease, AnalyzedDependency, AnalyzedDependencies}; +use ::models::crates::{CrateDeps, CrateRelease, AnalyzedDependency, AnalyzedDependencies}; pub struct DependencyAnalyzer { deps: AnalyzedDependencies diff --git a/src/engine/mod.rs b/src/engine/mod.rs index 3dce9ca..a0eaacb 100644 --- a/src/engine/mod.rs +++ b/src/engine/mod.rs @@ -1,7 +1,7 @@ mod analyzer; -use futures::{Future, Stream, future, stream}; -use hyper::{Client, Error as HyperError, Request, Response, StatusCode}; +use futures::{Future, Stream, stream}; +use hyper::Client; use hyper::client::HttpConnector; use hyper_tls::HttpsConnector; use slog::Logger; diff --git a/src/models/crates.rs b/src/models/crates.rs index 5466b69..c2dfc5c 100644 --- a/src/models/crates.rs +++ b/src/models/crates.rs @@ -44,13 +44,6 @@ pub struct CrateRelease { pub yanked: bool } -#[derive(Clone, Copy, Debug)] -pub enum DependencyType { - Main, - Dev, - Build -} - #[derive(Debug)] pub struct CrateDeps { pub main: BTreeMap,