fix(lint): replace unnecessary assert_eq! with assert! (#1079)

This commit is contained in:
Ken Matsui 2022-02-24 04:35:52 +09:00 committed by GitHub
parent 6e1915fdf2
commit 28c2046890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);