style(clippy): assert_eq -> assert for bool

This commit is contained in:
DarkCat09 2024-09-10 19:56:28 +04:00
parent 132463a433
commit 8dfc811bf7
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82

View file

@ -27,7 +27,7 @@ fn check_parser() {
assert_eq!(status.second_digit(), 0u8); assert_eq!(status.second_digit(), 0u8);
} }
assert_eq!(resp.is_ok(), true); assert!(resp.is_ok());
assert_eq!(resp.message(), "text/gemini"); assert_eq!(resp.message(), "text/gemini");
@ -54,7 +54,7 @@ fn check_real_site() {
.block_on(client.request("gemini://geminiprotocol.net/docs")) .block_on(client.request("gemini://geminiprotocol.net/docs"))
.unwrap(); .unwrap();
assert_eq!(resp.is_ok(), true); // check if redirection is processed correctly assert!(resp.is_ok()); // check if redirection is processed correctly
{ {
let mime = resp.mime().unwrap(); let mime = resp.mime().unwrap();