Skip to content

Commit

Permalink
add without_qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-phylum committed Nov 25, 2024
1 parent d8282f4 commit 1b09357
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions purl/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ impl<T> GenericPurlBuilder<T> {
self
}

/// Unset all qualifiers.
pub fn without_qualifiers(mut self) -> Self {
self.parts.qualifiers.clear();
self
}

/// Set the subpath.
///
/// Passing `""` will unset the subpath.
Expand Down

0 comments on commit 1b09357

Please sign in to comment.