on master help sign in
Fix for older version of Rust
commit9e7da0545936c2365742136f8caee73649f5ef6c authorsharkdp <davidpeter@web.de> dateThu 11 Oct 2018, 22:02 (8 years ago) parent1ae02c6
1 file changed+2−1
src/app.rs+2−1
src/app.rs+2−1
@@ -1,5 +1,6 @@
11use std::collections::HashSet;
22use std::env;
3+use std::ffi::OsStr;
34use std::str::FromStr;
45
56use atty::{self, Stream};
@@ -99,7 +100,7 @@ impl App {
99100
100101 fn matches(interactive_output: bool) -> ArgMatches<'static> {
101102 let args = if wild::args_os().nth(1) == Some("cache".into())
102− || wild::args_os().any(|arg| arg == "--no-config")
103+ || wild::args_os().any(|arg| arg == OsStr::new("--no-config"))
103104 {
104105 // Skip the arguments in bats config file
105106