pci, ch-remote, vmm: Replace simple match blocks with matches!

This is a new clippy check introduced in 1.47 which requires the use of
the matches!() macro for simple match blocks that return a boolean.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-10-08 15:26:16 +01:00
committed by Sebastien Boeuf
parent 2fac41f154
commit bb5b9584d2
3 changed files with 10 additions and 16 deletions

View File

@@ -1088,10 +1088,7 @@ pub enum ConsoleOutputMode {
impl ConsoleOutputMode {
pub fn input_enabled(&self) -> bool {
match self {
ConsoleOutputMode::Tty => true,
_ => false,
}
matches!(self, ConsoleOutputMode::Tty)
}
}