Remove pad crate and unnecessary qualifications

This commit is contained in:
Ben S 2015-09-04 11:20:13 +01:00
parent f526d24911
commit d1e682b0c1
4 changed files with 4 additions and 7 deletions

1
Cargo.lock generated
View File

@ -12,7 +12,6 @@ dependencies = [
"natord 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", "natord 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
"num_cpus 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", "num_cpus 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
"number_prefix 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "number_prefix 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
"pad 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
"scoped_threadpool 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "scoped_threadpool 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
"term_grid 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "term_grid 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"unicode-width 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "unicode-width 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -16,7 +16,6 @@ locale = "0.1.2"
natord = "1.0.7" natord = "1.0.7"
num_cpus = "*" num_cpus = "*"
number_prefix = "0.2.3" number_prefix = "0.2.3"
pad = "0.1.1"
scoped_threadpool = "*" scoped_threadpool = "*"
term_grid = "*" term_grid = "*"
unicode-width = "*" unicode-width = "*"

View File

@ -3,6 +3,7 @@
#![feature(slice_splits, vec_resize)] #![feature(slice_splits, vec_resize)]
#![warn(trivial_casts, trivial_numeric_casts)] #![warn(trivial_casts, trivial_numeric_casts)]
#![warn(unused_extern_crates, unused_qualifications)]
extern crate ansi_term; extern crate ansi_term;
extern crate datetime; extern crate datetime;
@ -12,7 +13,6 @@ extern crate locale;
extern crate natord; extern crate natord;
extern crate num_cpus; extern crate num_cpus;
extern crate number_prefix; extern crate number_prefix;
extern crate pad;
extern crate scoped_threadpool; extern crate scoped_threadpool;
extern crate term_grid; extern crate term_grid;
extern crate unicode_width; extern crate unicode_width;

View File

@ -1,5 +1,4 @@
use std::cmp; use std::cmp;
use std::default;
use std::fmt; use std::fmt;
use std::num::ParseIntError; use std::num::ParseIntError;
use std::os::unix::fs::MetadataExt; use std::os::unix::fs::MetadataExt;
@ -180,7 +179,7 @@ pub enum SortField {
ModifiedDate, AccessedDate, CreatedDate, ModifiedDate, AccessedDate, CreatedDate,
} }
impl default::Default for SortField { impl Default for SortField {
fn default() -> SortField { fn default() -> SortField {
SortField::Name SortField::Name
} }
@ -396,7 +395,7 @@ pub enum SizeFormat {
JustBytes, JustBytes,
} }
impl default::Default for SizeFormat { impl Default for SizeFormat {
fn default() -> SizeFormat { fn default() -> SizeFormat {
SizeFormat::DecimalBytes SizeFormat::DecimalBytes
} }
@ -442,7 +441,7 @@ pub struct TimeTypes {
created: bool, created: bool,
} }
impl default::Default for TimeTypes { impl Default for TimeTypes {
fn default() -> TimeTypes { fn default() -> TimeTypes {
TimeTypes { accessed: false, modified: true, created: false } TimeTypes { accessed: false, modified: true, created: false }
} }