Skip to content

Commit

Permalink
Merge pull request #707 from ctron/feature/into_1
Browse files Browse the repository at this point in the history
chore: allow turning a normalized string into a string
  • Loading branch information
Shnatsel committed May 16, 2024
2 parents 9bfe337 + 3daf9aa commit 6a7b726
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 6a7b726

Please sign in to comment.