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), Style(StyleStruct),
} }
struct StyleStruct { pub struct StyleStruct {
foreground: Colour, foreground: Colour,
background: Option<Colour>, background: Option<Colour>,
bold: bool, bold: bool,

8
exa.rs
View File

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