@@ -12,7 +12,7 @@ use crate::wrapping::WrappingMode;
1212
1313
1414#[cfg(feature = "paging")]
15−#[derive(Debug)]
15+#[derive(Debug, PartialEq)]
1616enum SingleScreenAction {
1717 Quit,
1818 Nothing,
@@ -93,11 +93,11 @@ impl OutputType {
9393 let mut p = Command::new(&pager_path);
9494 if args.is_empty() || replace_arguments_to_less {
9595 p.arg("--RAW-CONTROL-CHARS");
96− if let SingleScreenAction::Quit = single_screen_action {
96+ if single_screen_action == SingleScreenAction::Quit {
9797 p.arg("--quit-if-one-screen");
9898 }
9999
100− if let WrappingMode::NoWrapping = wrapping_mode {
100+ if wrapping_mode == WrappingMode::NoWrapping {
101101 p.arg("--chop-long-lines");
102102 }
103103