diff options
Diffstat (limited to 'src/output.rs')
-rw-r--r-- | src/output.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/output.rs b/src/output.rs index 32a94a4c..689371b9 100644 --- a/src/output.rs +++ b/src/output.rs @@ -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"))] |