chore: Fix clippy lint (#1181)

This commit is contained in:
tottoto
2022-12-13 11:29:29 -05:00
committed by GitHub
parent 3076e8251e
commit 2dd09c02bd
23 changed files with 98 additions and 62 deletions
+3 -3
View File
@@ -113,7 +113,7 @@ impl fmt::Display for TestAssertion {
macro_rules! test_assert {
($description:expr, $assertion:expr) => {
if $assertion {
crate::TestAssertion::Passed {
$crate::TestAssertion::Passed {
description: $description,
}
} else {
@@ -126,11 +126,11 @@ macro_rules! test_assert {
};
($description:expr, $assertion:expr, $why:expr) => {
if $assertion {
crate::TestAssertion::Passed {
$crate::TestAssertion::Passed {
description: $description,
}
} else {
crate::TestAssertion::Failed {
$crate::TestAssertion::Failed {
description: $description,
expression: stringify!($assertion),
why: Some($why),