diff --git a/purl/src/lib.rs b/purl/src/lib.rs index eaeada7..1bb845c 100644 --- a/purl/src/lib.rs +++ b/purl/src/lib.rs @@ -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), }, };