Skip to content

Commit

Permalink
Add missing feature guards
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewillmon committed Oct 31, 2023
1 parent c16878a commit 878004b
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 @@ -9,6 +9,7 @@ pub use format::*;
pub use package_type::*;
pub use parse::*;
pub use qualifiers::Qualifiers;
#[cfg(feature = "smartstring")]
use smartstring::{LazyCompact, SmartString, SmartStringMode};

mod builder;
Expand Down Expand Up @@ -181,6 +182,7 @@ impl<'a> PurlShape for Cow<'a, str> {
/// Without type-specific functionality, it's possible to create PURLs that have
/// incorrect capitalization or are missing a required namespace or required
/// qualifiers.
#[cfg(feature = "smartstring")]
impl<M> PurlShape for SmartString<M>
where
M: SmartStringMode,
Expand Down

0 comments on commit 878004b

Please sign in to comment.