From ab66c681c27ea09ae6781639860e5e112c1ed862 Mon Sep 17 00:00:00 2001 From: Ben S Date: Sun, 23 Nov 2014 22:36:03 +0000 Subject: [PATCH] Add some pointers --- src/options.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/options.rs b/src/options.rs index 824951c..be8b040 100644 --- a/src/options.rs +++ b/src/options.rs @@ -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 { + fn columns(matches: &getopts::Matches) -> Vec { let mut columns = vec![]; if matches.opt_present("inode") {