From 7d08564992247bb4d66f63c07e4ff1afbead0ff9 Mon Sep 17 00:00:00 2001 From: Srinivasa Reddy Sabbella Date: Tue, 5 May 2026 18:24:58 -0400 Subject: [PATCH] Fix clippy collapsible match warning --- src/view.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/view.rs b/src/view.rs index 67e4b19..a8ed8b3 100644 --- a/src/view.rs +++ b/src/view.rs @@ -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()); } _ => {} }