Skip to content

Commit

Permalink
Added extract_msrv_attr macro to manual_ilog2.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sour1emon committed Sep 2, 2024
1 parent 438fdad commit 1de3240
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clippy_lints/src/manual_ilog2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ impl ManualIlog2 {
impl_lint_pass!(ManualIlog2 => [MANUAL_ILOG2]);

impl LateLintPass<'_> for ManualIlog2 {

fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) {
if !self.msrv.meets(msrvs::MANUAL_ILOG2) {
return;
Expand Down Expand Up @@ -102,4 +103,6 @@ impl LateLintPass<'_> for ManualIlog2 {
);
}
}

extract_msrv_attr!(LateContext);
}

0 comments on commit 1de3240

Please sign in to comment.