aboutsummaryrefslogtreecommitdiff
path: root/common/object/src/debug.rs
diff options
context:
space:
mode:
Diffstat (limited to 'common/object/src/debug.rs')
-rw-r--r--common/object/src/debug.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/object/src/debug.rs b/common/object/src/debug.rs
index 15812b1..b45d5bf 100644
--- a/common/object/src/debug.rs
+++ b/common/object/src/debug.rs
@@ -18,7 +18,7 @@ impl Debug for Object<'_> {
let mut s = f.debug_struct("Object");
let mut nonexhaustive = false;
for (i, tag) in self.keys().enumerate() {
- let kbytes = tag.0.to_be_bytes();
+ let kbytes = tag.0.to_le_bytes();
let k = str::from_utf8(&kbytes).unwrap();
let ty = self.offset_type(i);
let sz = self.size(i);
@@ -52,7 +52,7 @@ impl<T> Debug for TypedTag<T> {
}
impl Debug for Tag {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- let bytes = self.0.to_be_bytes();
+ let bytes = self.0.to_le_bytes();
let name = str::from_utf8(&bytes).unwrap();
f.debug_tuple("Tag").field(&name).finish()
}