mirror of
https://github.com/sharkdp/bat.git
synced 2025-03-21 18:18:31 +00:00
Fix for older version of Rust
This commit is contained in:
parent
1ae02c65fb
commit
9e7da05459
@ -1,5 +1,6 @@
|
|||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
use std::env;
|
use std::env;
|
||||||
|
use std::ffi::OsStr;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
use atty::{self, Stream};
|
use atty::{self, Stream};
|
||||||
@ -99,7 +100,7 @@ impl App {
|
|||||||
|
|
||||||
fn matches(interactive_output: bool) -> ArgMatches<'static> {
|
fn matches(interactive_output: bool) -> ArgMatches<'static> {
|
||||||
let args = if wild::args_os().nth(1) == Some("cache".into())
|
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
|
// Skip the arguments in bats config file
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user