From 28c2046890371582e62bfe56a1d9d810a777d866 Mon Sep 17 00:00:00 2001 From: Ken Matsui <26405363+ken-matsui@users.noreply.github.com> Date: Thu, 24 Feb 2022 04:35:52 +0900 Subject: [PATCH] fix(lint): replace unnecessary `assert_eq!` with `assert!` (#1079) --- zellij-server/src/tab/unit/tab_integration_tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zellij-server/src/tab/unit/tab_integration_tests.rs b/zellij-server/src/tab/unit/tab_integration_tests.rs index 6312035b..2ebcc48d 100644 --- a/zellij-server/src/tab/unit/tab_integration_tests.rs +++ b/zellij-server/src/tab/unit/tab_integration_tests.rs @@ -828,13 +828,13 @@ fn mark_text_inside_floating_pane() { tab.handle_pty_bytes(5, Vec::from("\u{1b}#8".as_bytes())); tab.handle_pty_bytes(6, Vec::from("\u{1b}#8".as_bytes())); tab.handle_left_click(&Position::new(9, 71), client_id); - assert_eq!( - tab.selecting_with_mouse, true, + assert!( + tab.selecting_with_mouse, "started selecting with mouse on click" ); tab.handle_mouse_release(&Position::new(8, 50), client_id); - assert_eq!( - tab.selecting_with_mouse, false, + assert!( + !tab.selecting_with_mouse, "stopped selecting with mouse on release" ); tab.render(&mut output, None);