From: Seo Sanghyeon Date: Tue, 3 May 2016 09:21:27 +0000 (+0900) Subject: Remove unused trait imports X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~14^2~31^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3ee54eca24e945a3cd34e1493e039a98d2cbdd17;p=cargo.git Remove unused trait imports --- diff --git a/src/cargo/lib.rs b/src/cargo/lib.rs index ae67abc1b..b149c6386 100644 --- a/src/cargo/lib.rs +++ b/src/cargo/lib.rs @@ -26,7 +26,6 @@ extern crate toml; extern crate url; use std::env; -use std::error::Error; use std::io::prelude::*; use std::io; use rustc_serialize::{Decodable, Encodable}; diff --git a/src/cargo/ops/cargo_clean.rs b/src/cargo/ops/cargo_clean.rs index a8ba8f28a..f5dfdb0d9 100644 --- a/src/cargo/ops/cargo_clean.rs +++ b/src/cargo/ops/cargo_clean.rs @@ -3,7 +3,6 @@ use std::fs; use std::path::Path; use core::{Package, Profiles}; -use core::source::Source; use util::{CargoResult, human, ChainError, Config}; use ops::{self, Layout, Context, BuildConfig, Kind, Unit}; diff --git a/src/cargo/ops/cargo_install.rs b/src/cargo/ops/cargo_install.rs index d3d894e23..6744e77bc 100644 --- a/src/cargo/ops/cargo_install.rs +++ b/src/cargo/ops/cargo_install.rs @@ -10,7 +10,7 @@ use std::path::{Path, PathBuf}; use tempdir::TempDir; use toml; -use core::{SourceId, Source, Package, Registry, Dependency, PackageIdSpec}; +use core::{SourceId, Source, Package, Dependency, PackageIdSpec}; use core::PackageId; use ops::{self, CompileFilter}; use sources::{GitSource, PathSource, RegistrySource}; diff --git a/src/cargo/ops/cargo_new.rs b/src/cargo/ops/cargo_new.rs index 0f5d8b351..f125622c9 100644 --- a/src/cargo/ops/cargo_new.rs +++ b/src/cargo/ops/cargo_new.rs @@ -1,6 +1,5 @@ use std::env; use std::fs; -use std::io::prelude::*; use std::path::Path; use std::collections::BTreeMap; diff --git a/src/cargo/ops/cargo_run.rs b/src/cargo/ops/cargo_run.rs index 05646e7e2..6764118f9 100644 --- a/src/cargo/ops/cargo_run.rs +++ b/src/cargo/ops/cargo_run.rs @@ -1,6 +1,6 @@ use std::path::Path; -use ops::{self, ExecEngine, CompileFilter}; +use ops::{self, CompileFilter}; use util::{self, CargoResult, process, ProcessError}; use core::Package; diff --git a/src/cargo/ops/cargo_rustc/custom_build.rs b/src/cargo/ops/cargo_rustc/custom_build.rs index 85ace677b..9c6b7a246 100644 --- a/src/cargo/ops/cargo_rustc/custom_build.rs +++ b/src/cargo/ops/cargo_rustc/custom_build.rs @@ -1,6 +1,5 @@ use std::collections::{HashMap, BTreeSet, HashSet}; use std::fs; -use std::io::prelude::*; use std::path::{PathBuf, Path}; use std::str; use std::sync::{Mutex, Arc}; diff --git a/src/cargo/ops/cargo_rustc/mod.rs b/src/cargo/ops/cargo_rustc/mod.rs index 59e649f55..ab1ce343e 100644 --- a/src/cargo/ops/cargo_rustc/mod.rs +++ b/src/cargo/ops/cargo_rustc/mod.rs @@ -2,7 +2,6 @@ use std::collections::HashMap; use std::env; use std::ffi::{OsStr, OsString}; use std::fs; -use std::io::prelude::*; use std::path::{self, PathBuf}; use std::sync::Arc; diff --git a/src/cargo/ops/registry.rs b/src/cargo/ops/registry.rs index 266e4accf..4b4358e12 100644 --- a/src/cargo/ops/registry.rs +++ b/src/cargo/ops/registry.rs @@ -1,7 +1,6 @@ use std::collections::HashMap; use std::env; use std::fs::{self, File}; -use std::io::prelude::*; use std::iter::repeat; use std::path::{Path, PathBuf}; diff --git a/src/cargo/sources/path.rs b/src/cargo/sources/path.rs index 1492d99a7..6ae4cdf1a 100644 --- a/src/cargo/sources/path.rs +++ b/src/cargo/sources/path.rs @@ -1,6 +1,5 @@ use std::fmt::{self, Debug, Formatter}; use std::fs; -use std::io::prelude::*; use std::path::{Path, PathBuf}; use filetime::FileTime;