mirror of
https://github.com/sharkdp/bat
synced 2026-08-04 19:01:44 +00:00
fix some clippy warnings
This commit is contained in:
+1
-5
@@ -150,11 +150,7 @@ impl OutputType {
|
||||
|
||||
#[cfg(feature = "paging")]
|
||||
pub(crate) fn is_pager(&self) -> bool {
|
||||
if let OutputType::Pager(_) = self {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
matches!(self, OutputType::Pager(_))
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "paging"))]
|
||||
|
||||
Reference in New Issue
Block a user