mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-03 03:42:26 +01:00
remove all matches
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user