From 57f3271155196634fd90391d73fd6fa0c49a6f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Katona?= Date: Sun, 17 Jul 2022 11:19:35 -0700 Subject: [PATCH] fix clippy hint --- src/vcs.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } }