Skip to content

Commit 0c07162

Browse files
Srinivasa Reddy Sabbellasabbellasri
authored andcommitted
Fix clippy collapsible match warning
1 parent 70f4804 commit 0c07162

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/view.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ impl View {
5252

5353
// Adding the sort column to inserts if not already present
5454
match (&opt.sorta, &opt.sortd) {
55-
(_, Some(col)) | (Some(col), _) => {
56-
if !opt.insert.contains(col) {
57-
opt.insert.push(col.clone());
58-
}
55+
(_, Some(col)) | (Some(col), _) if !opt.insert.contains(col) => {
56+
opt.insert.push(col.clone());
5957
}
6058
_ => {}
6159
}

0 commit comments

Comments
 (0)