diff options
Diffstat (limited to 'common/object/src/inspect.rs')
| -rw-r--r-- | common/object/src/inspect.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/object/src/inspect.rs b/common/object/src/inspect.rs index 21648bd..bc217f0 100644 --- a/common/object/src/inspect.rs +++ b/common/object/src/inspect.rs @@ -24,10 +24,14 @@ impl Debug for Inspector<'_, Object<'_>> { }; match ty { x if x == STR => s.field(info.name, &self.1.get_typed::<&str>(i).unwrap()), + x if x == BINARY => s.field(info.name, &self.1.get_typed::<&[u8]>(i).unwrap()), x if x == OBJECT => s.field(info.name, &self.1.get_typed::<Object>(i).unwrap()), x if x == U32 => s.field(info.name, &self.1.get_typed::<u32>(i).unwrap()), x if x == U64 => s.field(info.name, &self.1.get_typed::<u64>(i).unwrap()), - _ => &mut s, + _ => { + nonexhaustive = true; + &mut s + } }; } if nonexhaustive { |