Skip to content

Commit

Permalink
Make bool_to_int_with_if happy
Browse files Browse the repository at this point in the history
For reasons that are unclear to me, I am seeing this lint fire in
clippy_lints/src/macro_metavars_in_unsafe.rs.
  • Loading branch information
smoelius committed Nov 26, 2024
1 parent 61f691f commit 1218259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/macro_metavars_in_unsafe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl<'tcx> LateLintPass<'tcx> for ExprMetavarsInUnsafe {

let mut vis = BodyVisitor {
macro_unsafe_blocks: Vec::new(),
expn_depth: if body.value.span.from_expansion() { 1 } else { 0 },
expn_depth: u32::from(body.value.span.from_expansion()),
cx,
lint: self,
};
Expand Down

0 comments on commit 1218259

Please sign in to comment.