From 262b153cf0c8051a60212f7237f809f97d5b1d39 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Sun, 11 Oct 2020 17:03:53 +0200 Subject: [PATCH] fix another clippy warning --- src/cmdbar.rs | 5 +---- src/main.rs | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cmdbar.rs b/src/cmdbar.rs index 4c66e642..0a5d420b 100644 --- a/src/cmdbar.rs +++ b/src/cmdbar.rs @@ -149,10 +149,7 @@ impl CommandBar { let texts = self .draw_list - .split(|c| match c { - DrawListEntry::LineBreak => true, - _ => false, - }) + .split(|c| matches!(c, DrawListEntry::LineBreak)) .map(|c_arr| { Spans::from( c_arr diff --git a/src/main.rs b/src/main.rs index 8a05275f..c8b06943 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,7 @@ #![deny(clippy::nursery)] #![deny(clippy::unwrap_used)] #![deny(clippy::panic)] +#![deny(clippy::match_like_matches_macro)] #![allow(clippy::module_name_repetitions)] #![allow(clippy::multiple_crate_versions)]