From e4cee37805c38d9fe47977194efe09689ec1baf4 Mon Sep 17 00:00:00 2001 From: Ben S Date: Sun, 4 May 2014 21:35:10 +0100 Subject: [PATCH] Fix various warnings --- colours.rs | 2 +- exa.rs | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/colours.rs b/colours.rs index 5ecb3b4..cfb2594 100644 --- a/colours.rs +++ b/colours.rs @@ -8,7 +8,7 @@ pub enum Style { Style(StyleStruct), } -struct StyleStruct { +pub struct StyleStruct { foreground: Colour, background: Option, bold: bool, diff --git a/exa.rs b/exa.rs index ba125cc..a94d056 100644 --- a/exa.rs +++ b/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 {