mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
Fix clippy lint and format (#1328)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
d768b8c029
commit
e5567ae526
3 changed files with 10 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue