Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit af095db

Browse files
committed
fix msrv check
1 parent a75ab30 commit af095db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub fn parse_msrv(msrv: &str, sess: Option<&Session>, span: Option<Span>) -> Opt
7676
}
7777

7878
pub fn meets_msrv(msrv: Option<&RustcVersion>, lint_msrv: &RustcVersion) -> bool {
79-
msrv.map_or(true, |msrv| msrv > lint_msrv)
79+
msrv.map_or(true, |msrv| msrv >= lint_msrv)
8080
}
8181

8282
macro_rules! extract_msrv_attr {

0 commit comments

Comments
 (0)