From 1b09357e2dc85c27b389dedf7c8e4d63509447cc Mon Sep 17 00:00:00 2001 From: Matthew Donoughe Date: Mon, 25 Nov 2024 09:00:48 -0500 Subject: [PATCH] add without_qualifiers --- purl/src/builder.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/purl/src/builder.rs b/purl/src/builder.rs index 504f971..3e7c2ac 100644 --- a/purl/src/builder.rs +++ b/purl/src/builder.rs @@ -158,6 +158,12 @@ impl GenericPurlBuilder { self } + /// Unset all qualifiers. + pub fn without_qualifiers(mut self) -> Self { + self.parts.qualifiers.clear(); + self + } + /// Set the subpath. /// /// Passing `""` will unset the subpath.