Fix clippy lint and format (#1328)

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-08-25 18:53:50 +10:00 committed by GitHub
parent d768b8c029
commit e5567ae526
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View file

@ -163,7 +163,9 @@ impl MatchedVersion {
let num = entry.vers;
// Parse out version
let Ok(ver) = Version::parse(&num) else { continue };
let Ok(ver) = Version::parse(&num) else {
continue;
};
// Filter by version match
if !version_req.matches(&ver) {