mirror of
https://github.com/dalance/procs.git
synced 2026-10-12 02:12:39 +00:00
Fix clippy collapsible match warning
This commit is contained in:
committed by
Sri Sabbella
parent
6cecc6f09f
commit
7d08564992
+2
-4
@@ -52,10 +52,8 @@ impl View {
|
||||
|
||||
// Adding the sort column to inserts if not already present
|
||||
match (&opt.sorta, &opt.sortd) {
|
||||
(_, Some(col)) | (Some(col), _) => {
|
||||
if !opt.insert.contains(col) {
|
||||
opt.insert.push(col.clone());
|
||||
}
|
||||
(_, Some(col)) | (Some(col), _) if !opt.insert.contains(col) => {
|
||||
opt.insert.push(col.clone());
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user