From 8dfc811bf75890b313d9fda3499a76a19644333b Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Tue, 10 Sep 2024 19:56:28 +0400 Subject: [PATCH] style(clippy): assert_eq -> assert for bool --- src/client/tests/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/tests/mod.rs b/src/client/tests/mod.rs index 3d857b0..ecef9bc 100644 --- a/src/client/tests/mod.rs +++ b/src/client/tests/mod.rs @@ -27,7 +27,7 @@ fn check_parser() { assert_eq!(status.second_digit(), 0u8); } - assert_eq!(resp.is_ok(), true); + assert!(resp.is_ok()); assert_eq!(resp.message(), "text/gemini"); @@ -54,7 +54,7 @@ fn check_real_site() { .block_on(client.request("gemini://geminiprotocol.net/docs")) .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();