Ben S 11 лет назад
Родитель
Сommit
e4cee37805
2 измененных файлов с 3 добавлено и 7 удалено
  1. 1 1
      colours.rs
  2. 2 6
      exa.rs

+ 1 - 1
colours.rs

@@ -8,7 +8,7 @@ pub enum Style {
     Style(StyleStruct),
 }
 
-struct StyleStruct {
+pub struct StyleStruct {
     foreground: Colour,
     background: Option<Colour>,
     bold: bool,

+ 2 - 6
exa.rs

@@ -1,10 +1,9 @@
 extern crate getopts;
 use std::os;
-use std::io;
 use std::io::fs;
 
 use file::File;
-use column::{Column, defaultColumns};
+use column::defaultColumns;
 
 pub mod colours;
 pub mod column;
@@ -24,10 +23,7 @@ fn main() {
 
     let matches = match getopts::getopts(args.tail(), opts) {
         Ok(m) => m,
-        Err(f) => {
-            fail!("Invalid options\n{}", f.to_err_msg());
-            return
-        }
+        Err(f) => fail!("Invalid options\n{}", f.to_err_msg()),
     };
 
     let opts = Options {