From 25a6a55437bd089277579e3c2a644e54c7ffc5c2 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Thu, 11 Oct 2018 23:02:57 +0200 Subject: [PATCH] Revert "Fix for older version of Rust" This reverts commit c530fadc442069e857841e59fc298710a2ef2c16. --- src/app.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index fbe75cea..fd25103b 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,6 +1,5 @@ use std::collections::HashSet; use std::env; -use std::ffi::OsStr; use std::str::FromStr; use atty::{self, Stream}; @@ -95,7 +94,7 @@ impl App { fn matches(interactive_output: bool) -> Result> { let args = if wild::args_os().nth(1) == Some("cache".into()) - || wild::args_os().any(|arg| arg == OsStr::new("--no-config")) + || wild::args_os().any(|arg| arg == "--no-config") { // Skip the arguments in bats config file