fix some clippy warnings

This commit is contained in:
MarcoIeni authored and David Peter committed 2020-11-23 14:25:01 +01:00
1 parent 51463a4b41
commit 43b2ee5e71
7 files changed
+11 -25

No files matched your search

+1 -5
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"))]