mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
fix another clippy warning
This commit is contained in:
parent
2df0a8957b
commit
262b153cf0
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue