mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-22 10:26:30 +00:00
clean up imports
This commit is contained in:
parent
b6dea8b0e9
commit
2ce0218218
4 changed files with 5 additions and 17 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue