Skip to content

Commit

Permalink
Convert string slice into PointId (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
timvisee authored Jun 28, 2024
1 parent b46b660 commit 3250448
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/grpc_conversions/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ impl From<String> for PointId {
}
}

impl From<&str> for PointId {
fn from(val: &str) -> Self {
Self::from(val.to_string())
}
}

impl From<u64> for PointId {
fn from(val: u64) -> Self {
Self {
Expand Down

0 comments on commit 3250448

Please sign in to comment.