1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-01 18:31:46 +00:00

remove all matches

This commit is contained in:
MarcoIeni
2020-11-15 13:29:09 +01:00
committed by David Peter
parent 2ccff145ed
commit f5531cc7fa
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -137,7 +137,11 @@ impl<'a> Input<'a> {
}
pub fn is_stdin(&self) -> bool {
matches!(self.kind, InputKind::StdIn)
if let InputKind::StdIn = self.kind {
true
} else {
false
}
}
pub fn with_name(mut self, provided_name: Option<&OsStr>) -> Self {