Fix build on 1.37

This commit is contained in:
sharkdp 2020-04-18 17:57:57 +02:00 committed by David Peter
parent 98ba9e0101
commit 8067fd9eda
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ impl App {
fn files(&self) -> Result<Vec<InputFile>> {
// verify equal length of file-names and input FILEs
match self.matches.values_of("file-name") {
Some(filenames)
Some(ref filenames)
if self.matches.values_of_os("FILE").is_some()
&& filenames.len() != self.matches.values_of_os("FILE").unwrap().len() =>
{