mirror of https://github.com/sharkdp/bat.git
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…
Reference in New Issue