From c530fadc442069e857841e59fc298710a2ef2c16 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Thu, 11 Oct 2018 22:02:29 +0200 Subject: [PATCH] Fix for older version of Rust --- src/app.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index d9950c47..2c868df2 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,5 +1,6 @@ use std::collections::HashSet; use std::env; +use std::ffi::OsStr; use std::str::FromStr; use atty::{self, Stream}; @@ -99,7 +100,7 @@ impl App { fn matches(interactive_output: bool) -> ArgMatches<'static> { let args = if wild::args_os().nth(1) == Some("cache".into()) - || wild::args_os().any(|arg| arg == "--no-config") + || wild::args_os().any(|arg| arg == OsStr::new("--no-config")) { // Skip the arguments in bats config file