mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-05 20:37:52 +00:00
Fix various warnings
This commit is contained in:
parent
10b8f6f414
commit
e4cee37805
@ -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
8
exa.rs
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user