Skip to content

Commit a3acc20

Browse files
committed
SQUASHME: Address clippy complaint about Err(_)?
Clippy advised us to use `return Err(_)` instead of `Err(_)?` in the `check!` macro
1 parent 3860312 commit a3acc20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/debug.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ macro_rules! check {
202202
($cond:expr, $error:expr) => {
203203
if !$cond {
204204
let error = $error;
205-
Err(fail!(
205+
return Err(fail!(
206206
error,
207207
"check failure: `{}`; returned {:?}",
208208
stringify!($cond),
209209
error,
210-
))?;
210+
));
211211
}
212212
};
213213
}

0 commit comments

Comments
 (0)