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