Skip to content

Commit 75148c2

Browse files
committed
fix linting issues with assert_eq!()
1 parent 3eccccb commit 75148c2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/matchers/text.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ mod tests {
8888

8989
#[test]
9090
fn html() {
91-
assert_eq!(is_html(b"<"), false);
92-
assert_eq!(is_html(b"<HTML"), false);
93-
assert_eq!(is_html(b"<HTML "), true);
94-
assert_eq!(is_html(b" <BODY>"), true);
91+
assert!(!is_html(b"<"));
92+
assert!(!is_html(b"<HTML"));
93+
assert!(is_html(b"<HTML "));
94+
assert!(is_html(b" <BODY>"));
9595
}
9696

9797
#[test]
9898
fn shellscript() {
99-
assert_eq!(is_shellscript(b"#!"), false);
99+
assert!(!is_shellscript(b"#!"));
100100
}
101101
}

0 commit comments

Comments
 (0)