Skip to content

Commit

Permalink
Remove unneeded impl TryFrom<String> for Ulid
Browse files Browse the repository at this point in the history
  • Loading branch information
j-tai committed Jul 13, 2024
1 parent 3693392 commit 55415b2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,6 @@ impl TryFrom<&'_ str> for Ulid {
}
}

impl TryFrom<String> for Ulid {
type Error = DecodeError;

fn try_from(value: String) -> Result<Self, Self::Error> {
Ulid::from_string(&value)
}
}

impl fmt::Display for Ulid {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
let mut buffer = [0; ULID_LEN];
Expand Down

0 comments on commit 55415b2

Please sign in to comment.