diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-10 01:11:36 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-10 01:11:36 +0100 |
| commit | f035474090d3c82f50c3860cbafd6f60b8af36e8 (patch) | |
| tree | ad05b9df5770bee3c1f020870911f7744977422d /common/object/src/inspect.rs | |
| parent | 7754a042ed80c7d8e2391925a8a6ae87a7610c8e (diff) | |
| download | jellything-f035474090d3c82f50c3860cbafd6f60b8af36e8.tar jellything-f035474090d3c82f50c3860cbafd6f60b8af36e8.tar.bz2 jellything-f035474090d3c82f50c3860cbafd6f60b8af36e8.tar.zst | |
fix index key ser; query debug print
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 { |