Skip to content

Commit

Permalink
impl From<String> for Name
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed Aug 13, 2023
1 parent c490263 commit 47ee00f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pdf/src/primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,12 @@ impl Deref for Name {
&self.0
}
}
impl From<String> for Name {
#[inline]
fn from(s: String) -> Name {
Name(s.into())
}
}
impl From<SmallString> for Name {
#[inline]
fn from(s: SmallString) -> Name {
Expand Down

0 comments on commit 47ee00f

Please sign in to comment.