Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jeffrey Huynh <jeffrey@fossa.com>
  • Loading branch information
csasarak and JeffreyHuynh1 committed Apr 25, 2024
1 parent a8a2934 commit 510e30e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Strategy/Cargo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,7 @@ parsePkgSpec = eatSpaces (try longSpec <|> simplePkgSpec')
where
eatSpaces m = space *> m <* space

-- In the following imagine we're working with this fragment:
-- adler@1.0.2
-- Given the fragment: adler@1.0.2
pkgName :: PkgSpecParser (PkgName, PkgVersion)
pkgName = do
-- Parse: adler
Expand All @@ -440,8 +439,7 @@ parsePkgSpec = eatSpaces (try longSpec <|> simplePkgSpec')
, pkgIdSource = ""
}

-- In the following imagine we are working with this spec:
-- registry+https://github.com/rust-lang/crates.io-index#adler@1.0.2
-- Given the spec: registry+https://github.com/rust-lang/crates.io-index#adler@1.0.2
longSpec :: PkgSpecParser PackageId
longSpec = do
-- Parse: registry+https
Expand Down

0 comments on commit 510e30e

Please sign in to comment.