Skip to content

Commit 091fcb8

Browse files
committed
Make Debug for Utf8 datatype derived component types readable
1 parent 13470a2 commit 091fcb8

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

crates/store/re_types/definitions/rerun/datatypes/utf8.fbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ table Utf8 (
99
"attr.arrow.transparent",
1010
"attr.python.aliases": "str",
1111
"attr.python.array_aliases": "str | Sequence[str] | npt.ArrayLike",
12-
"attr.rust.derive": "Default, PartialEq, Eq, PartialOrd, Ord, Hash",
12+
"attr.rust.derive_only": "Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash",
1313
"attr.rust.override_crate": "re_types_core",
1414
"attr.rust.repr": "transparent",
1515
"attr.rust.tuple_struct"

crates/store/re_types_core/src/datatypes/utf8.rs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/store/re_types_core/src/datatypes/utf8_ext.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,9 @@ impl std::ops::Deref for Utf8 {
5050
self.as_str()
5151
}
5252
}
53+
54+
impl std::fmt::Debug for Utf8 {
55+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
56+
write!(f, "{:?}", self.as_str())
57+
}
58+
}

0 commit comments

Comments
 (0)