Fix clippy collapsible match warning

This commit is contained in:
Srinivasa Reddy Sabbella
2026-05-31 16:33:05 -04:00
committed by Sri Sabbella
parent 6cecc6f09f
commit 7d08564992
+2 -4
View File
@@ -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());
}
_ => {}
}