Add some pointers

This commit is contained in:
Ben S 2014-11-23 22:36:03 +00:00
parent 92dc91dbc7
commit ab66c681c2

View File

@ -59,7 +59,7 @@ impl Options {
match getopts::getopts(args.tail(), opts) {
Err(f) => Err(f),
Ok(matches) => Ok(Options {
Ok(ref matches) => Ok(Options {
show_invisibles: matches.opt_present("all"),
reverse: matches.opt_present("reverse"),
header: matches.opt_present("header"),
@ -70,7 +70,7 @@ impl Options {
}
}
fn view(matches: getopts::Matches) -> View {
fn view(matches: &getopts::Matches) -> View {
if matches.opt_present("long") {
View::Details(Options::columns(matches))
}
@ -85,7 +85,7 @@ impl Options {
}
}
fn columns(matches: getopts::Matches) -> Vec<Column> {
fn columns(matches: &getopts::Matches) -> Vec<Column> {
let mut columns = vec![];
if matches.opt_present("inode") {