From 4e4dcb8da176e3eece83a47e1a220e8f9508331a Mon Sep 17 00:00:00 2001 From: utam0k Date: Mon, 21 Jun 2021 23:04:46 +0900 Subject: [PATCH] Use `assert!` instead of `assert_eq!` when comparing a boolean. --- src/utils.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index 8489ecc89..1711de195 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -162,12 +162,9 @@ mod tests { #[test] fn test_join_absolute_path_error() { - assert_eq!( - PathBuf::from("sample/a/") - .join_absolute_path(&PathBuf::from("b/c")) - .is_err(), - true - ); + assert!(PathBuf::from("sample/a/") + .join_absolute_path(&PathBuf::from("b/c")) + .is_err(),); } #[test]