diff --git a/src/vcs.rs b/src/vcs.rs index af12d3a..31a0f6d 100644 --- a/src/vcs.rs +++ b/src/vcs.rs @@ -138,9 +138,7 @@ impl Vcs { for project in &self.projects { let msrv = project.msrv(); - if min_msrv.is_none() { - min_msrv = msrv; - } else if msrv.is_some() && msrv < min_msrv { + if min_msrv.is_none() || (msrv.is_some() && msrv < min_msrv) { min_msrv = msrv; } }