fix msrv check

This commit is contained in:
suyash458 2020-11-29 00:33:07 -08:00
parent a75ab302d2
commit af095db64c

View File

@ -76,7 +76,7 @@ pub fn parse_msrv(msrv: &str, sess: Option<&Session>, span: Option<Span>) -> Opt
}
pub fn meets_msrv(msrv: Option<&RustcVersion>, lint_msrv: &RustcVersion) -> bool {
msrv.map_or(true, |msrv| msrv > lint_msrv)
msrv.map_or(true, |msrv| msrv >= lint_msrv)
}
macro_rules! extract_msrv_attr {