Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-work committed Dec 17, 2024
1 parent 1deeb76 commit 95cbb40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions purl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,11 @@ impl Purl {
(None, namespaced_name)
},
PackageType::Golang | PackageType::Npm => match namespaced_name.rsplit_once('/') {
Some((namespace, name)) => (Some(namespace), name.into()),
Some((namespace, name)) => (Some(namespace), name),
None => (None, namespaced_name),
},
PackageType::Maven => match namespaced_name.split_once(':') {
Some((namespace, name)) => (Some(namespace), name.into()),
Some((namespace, name)) => (Some(namespace), name),
None => (None, namespaced_name),
},
};
Expand Down

0 comments on commit 95cbb40

Please sign in to comment.