Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-work committed Oct 11, 2023
1 parent 7e83fee commit d6f19a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lockfile/src/parsers/pypi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ fn line<'a>(input: &'a str, registry: &mut Option<&'a str>) -> IResult<&'a str,
//
// Since `ThirdPartyVersion` only allows a single registry, we only record the
// primary one.
if let Some(index_url) =
line.strip_prefix("--index-url ").or_else(|| line.strip_prefix("-i "))
if let Some(index_url) = line.strip_prefix("--index-url ").or_else(|| line.strip_prefix("-i "))
{
*registry = Some(index_url.trim());
line = "";
Expand Down

0 comments on commit d6f19a7

Please sign in to comment.