mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-12-26 01:57:32 +00:00
Fix various warnings
This commit is contained in:
parent
10b8f6f414
commit
e4cee37805
@ -8,7 +8,7 @@ pub enum Style {
|
||||
Style(StyleStruct),
|
||||
}
|
||||
|
||||
struct StyleStruct {
|
||||
pub struct StyleStruct {
|
||||
foreground: Colour,
|
||||
background: Option<Colour>,
|
||||
bold: bool,
|
||||
|
8
exa.rs
8
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user