Skip to content

Commit 1de3240

Browse files
committed
Added extract_msrv_attr macro to manual_ilog2.rs
1 parent 438fdad commit 1de3240

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clippy_lints/src/manual_ilog2.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ impl ManualIlog2 {
4848
impl_lint_pass!(ManualIlog2 => [MANUAL_ILOG2]);
4949

5050
impl LateLintPass<'_> for ManualIlog2 {
51+
5152
fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) {
5253
if !self.msrv.meets(msrvs::MANUAL_ILOG2) {
5354
return;
@@ -102,4 +103,6 @@ impl LateLintPass<'_> for ManualIlog2 {
102103
);
103104
}
104105
}
106+
107+
extract_msrv_attr!(LateContext);
105108
}

0 commit comments

Comments
 (0)