mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-12 16:48:18 +01:00
remove all matches
This commit is contained in:
parent
2ccff145ed
commit
f5531cc7fa
@ -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 {
|
||||
|
@ -150,7 +150,11 @@ impl OutputType {
|
||||
|
||||
#[cfg(feature = "paging")]
|
||||
pub(crate) fn is_pager(&self) -> bool {
|
||||
matches!(self, OutputType::Pager(_))
|
||||
if let OutputType::Pager(_) = self {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "paging"))]
|
||||
|
Loading…
Reference in New Issue
Block a user