Skip to content

Commit

Permalink
Merge pull request #104 from utam0k/fix-clippy
Browse files Browse the repository at this point in the history
Use `assert!` instead of `assert_eq!` when comparing a boolean.
  • Loading branch information
Furisto authored Jun 21, 2021
2 parents 2f3d806 + 4e4dcb8 commit f9d5458
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f9d5458

Please sign in to comment.