Skip to content

Commit

Permalink
chore: allow turning a normalized string into a string
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Reimann <ctron@dentrassi.de>
  • Loading branch information
ctron committed May 16, 2024
1 parent 9bfe337 commit 3daf9aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cyclonedx-bom/src/external_models/normalized_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ impl From<&str> for NormalizedString {
}
}

impl From<NormalizedString> for String {
fn from(value: NormalizedString) -> Self {
value.0
}
}

impl Deref for NormalizedString {
type Target = str;

Expand Down

0 comments on commit 3daf9aa

Please sign in to comment.