Skip to content

Commit bdb04be

Browse files
committed
type conv
1 parent a5b1b01 commit bdb04be

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • quickwit/quickwit-proto/src/types

quickwit/quickwit-proto/src/types/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ impl AsRef<NodeIdRef> for NodeId {
114114
}
115115
}
116116

117+
impl AsRef<str> for NodeId {
118+
fn as_ref(&self) -> &str {
119+
&self.0
120+
}
121+
}
122+
117123
impl Borrow<str> for NodeId {
118124
fn borrow(&self) -> &str {
119125
&self.0

0 commit comments

Comments
 (0)