Fix various warnings

This commit is contained in:
Ben S 2014-05-04 21:35:10 +01:00
parent 10b8f6f414
commit e4cee37805
2 changed files with 3 additions and 7 deletions

View File

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

8
exa.rs
View File

@ -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 {