Skip to content

Commit ed6ed1c

Browse files
committed
fix: fix formatting issue
Signed-off-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
1 parent 40ca45f commit ed6ed1c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/languages/python.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,10 +833,10 @@ fn parse_version_constraint(constraint: &str) -> Option<(&str, &str)> {
833833
Some(("!=", version.trim()))
834834
} else if let Some(version) = constraint.strip_prefix(">") {
835835
Some((">", version.trim()))
836-
} else if let Some(version) = constraint.strip_prefix("<") {
837-
Some(("<", version.trim()))
838836
} else {
839-
None
837+
constraint
838+
.strip_prefix("<")
839+
.map(|version| ("<", version.trim()))
840840
}
841841
}
842842

0 commit comments

Comments
 (0)