1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-17 02:32:26 +01:00

fix some clippy warnings

This commit is contained in:
MarcoIeni
2020-11-05 22:29:04 +01:00
committed by David Peter
parent 51463a4b41
commit 43b2ee5e71
7 changed files with 11 additions and 25 deletions

View File

@@ -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"))]