mirror of
https://github.com/sharkdp/bat.git
synced 2025-03-14 06:38:24 +00:00
Fix build on 1.37
This commit is contained in:
parent
98ba9e0101
commit
8067fd9eda
@ -225,7 +225,7 @@ impl App {
|
|||||||
fn files(&self) -> Result<Vec<InputFile>> {
|
fn files(&self) -> Result<Vec<InputFile>> {
|
||||||
// verify equal length of file-names and input FILEs
|
// verify equal length of file-names and input FILEs
|
||||||
match self.matches.values_of("file-name") {
|
match self.matches.values_of("file-name") {
|
||||||
Some(filenames)
|
Some(ref filenames)
|
||||||
if self.matches.values_of_os("FILE").is_some()
|
if self.matches.values_of_os("FILE").is_some()
|
||||||
&& filenames.len() != self.matches.values_of_os("FILE").unwrap().len() =>
|
&& filenames.len() != self.matches.values_of_os("FILE").unwrap().len() =>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user