Skip to content

Commit

Permalink
remove unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
ssg committed May 3, 2022
1 parent 9ff07d2 commit e909c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl TryFrom<&Bytes> for TurkishId {
type Error = Err;
fn try_from(value: &Bytes) -> Result<Self, Self::Error> {
validate(value)?;
Ok(Self(value.clone()))
Ok(Self(*value))
}
}

Expand Down

0 comments on commit e909c8e

Please sign in to comment.