clean up imports

This commit is contained in:
Sam Rijs 2018-01-26 23:41:59 +11:00
parent b6dea8b0e9
commit 2ce0218218
4 changed files with 5 additions and 17 deletions

View file

@ -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;

View file

@ -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

View file

@ -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;

View file

@ -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<CrateName, VersionReq>,