瀏覽代碼

Add some pointers

Ben S 11 年之前
父節點
當前提交
ab66c681c2
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/options.rs

+ 3 - 3
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<Column> {
+    fn columns(matches: &getopts::Matches) -> Vec<Column> {
         let mut columns = vec![];
 
         if matches.opt_present("inode") {