1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-25 17:21:43 +00:00

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 -1
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() =>
{