Skip to content

Commit 6b870a3

Browse files
committed
timeuuid: implement fmt::Display for CqlTimeuuid
1 parent 9e2ac1f commit 6b870a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scylla-cql/src/frame/value.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ impl std::str::FromStr for CqlTimeuuid {
155155
}
156156
}
157157

158+
impl std::fmt::Display for CqlTimeuuid {
159+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
160+
write!(f, "{}", self.0)
161+
}
162+
}
163+
158164
impl AsRef<Uuid> for CqlTimeuuid {
159165
fn as_ref(&self) -> &Uuid {
160166
&self.0

0 commit comments

Comments
 (0)