Parcourir la source

Fix panic when using --long without git support

Fixes #55.
Ben S il y a 11 ans
Parent
commit
fc188935cd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/options.rs

+ 1 - 1
src/options.rs

@@ -512,7 +512,7 @@ impl Columns {
             links:  matches.opt_present("links"),
             blocks: matches.opt_present("blocks"),
             group:  matches.opt_present("group"),
-            git:    matches.opt_present("git"),
+            git:    cfg!(feature="git") && matches.opt_present("git"),
         })
     }