Skip to content

Commit

Permalink
Fix build without features
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-work committed Dec 17, 2024
1 parent c86df42 commit 3af06fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions purl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ impl<T> GenericPurl<T> {
}
}

#[cfg(feature = "package-type")]
impl Purl {
/// Create a new [`PurlBuilder`] with a combined name and namespace.
pub fn builder_with_combined_name<S>(
Expand Down Expand Up @@ -590,6 +591,7 @@ mod tests {
assert_eq!(None, purl.subpath());
}

#[cfg(feature = "package-type")]
#[test]
fn namespaced_name() {
let purl =
Expand Down

0 comments on commit 3af06fb

Please sign in to comment.