ソースを参照

Remove pad crate and unnecessary qualifications

Ben S 10 年 前
コミット
d1e682b0c1
4 ファイル変更4 行追加7 行削除
  1. 0 1
      Cargo.lock
  2. 0 1
      Cargo.toml
  3. 1 1
      src/main.rs
  4. 3 4
      src/options.rs

+ 0 - 1
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)",

+ 0 - 1
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 = "*"

+ 1 - 1
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;

+ 3 - 4
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 }
     }