Skip to content

Commit

Permalink
Drop obsolete comment about the namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel committed Jul 16, 2024
1 parent 169affd commit d381c70
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cyclonedx-bom/src/external_models/uri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ pub fn validate_purl(purl: &Purl) -> Result<(), ValidationError> {
pub struct Purl(pub(crate) String);

impl Purl {
/// Note that some package types, e.g. Maven, *require* the namespace to be specified,
/// While other package types do not support namespaces at all, e.g. crates.io.
pub fn new(package_type: &str, name: &str, version: &str) -> Result<Purl, UriError> {
let builder = GenericPurlBuilder::new(package_type.to_string(), name).with_version(version);

Expand Down

0 comments on commit d381c70

Please sign in to comment.