We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bool_to_int_with_if
1 parent 61f691f commit 1218259Copy full SHA for 1218259
clippy_lints/src/macro_metavars_in_unsafe.rs
@@ -221,7 +221,7 @@ impl<'tcx> LateLintPass<'tcx> for ExprMetavarsInUnsafe {
221
222
let mut vis = BodyVisitor {
223
macro_unsafe_blocks: Vec::new(),
224
- expn_depth: if body.value.span.from_expansion() { 1 } else { 0 },
+ expn_depth: u32::from(body.value.span.from_expansion()),
225
cx,
226
lint: self,
227
};
0 commit comments