From d1e682b0c185449802b060555fee035233b8e154 Mon Sep 17 00:00:00 2001 From: Ben S Date: Fri, 4 Sep 2015 11:20:13 +0100 Subject: [PATCH] Remove pad crate and unnecessary qualifications --- Cargo.lock | 1 - Cargo.toml | 1 - src/main.rs | 2 +- src/options.rs | 7 +++---- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c883b53..f6e98d4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12,7 +12,6 @@ dependencies = [ "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)", "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)", "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)", diff --git a/Cargo.toml b/Cargo.toml index 64df420..497e8d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,6 @@ locale = "0.1.2" natord = "1.0.7" num_cpus = "*" number_prefix = "0.2.3" -pad = "0.1.1" scoped_threadpool = "*" term_grid = "*" unicode-width = "*" diff --git a/src/main.rs b/src/main.rs index 8b2c326..54b753e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ #![feature(slice_splits, vec_resize)] #![warn(trivial_casts, trivial_numeric_casts)] +#![warn(unused_extern_crates, unused_qualifications)] extern crate ansi_term; extern crate datetime; @@ -12,7 +13,6 @@ extern crate locale; extern crate natord; extern crate num_cpus; extern crate number_prefix; -extern crate pad; extern crate scoped_threadpool; extern crate term_grid; extern crate unicode_width; diff --git a/src/options.rs b/src/options.rs index dd76218..44d055f 100644 --- a/src/options.rs +++ b/src/options.rs @@ -1,5 +1,4 @@ use std::cmp; -use std::default; use std::fmt; use std::num::ParseIntError; use std::os::unix::fs::MetadataExt; @@ -180,7 +179,7 @@ pub enum SortField { ModifiedDate, AccessedDate, CreatedDate, } -impl default::Default for SortField { +impl Default for SortField { fn default() -> SortField { SortField::Name } @@ -396,7 +395,7 @@ pub enum SizeFormat { JustBytes, } -impl default::Default for SizeFormat { +impl Default for SizeFormat { fn default() -> SizeFormat { SizeFormat::DecimalBytes } @@ -442,7 +441,7 @@ pub struct TimeTypes { created: bool, } -impl default::Default for TimeTypes { +impl Default for TimeTypes { fn default() -> TimeTypes { TimeTypes { accessed: false, modified: true, created: false } }