From e3aeb6a1c9955eee2c396230317e63becd24ec6a Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 26 Feb 2026 00:51:45 +0800 Subject: Replace string type identifiers with TypeId for command output matching --- src/cmds/cmd/hexdump.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cmds/cmd/hexdump.rs') diff --git a/src/cmds/cmd/hexdump.rs b/src/cmds/cmd/hexdump.rs index a0f4a21..82f5d45 100644 --- a/src/cmds/cmd/hexdump.rs +++ b/src/cmds/cmd/hexdump.rs @@ -1,3 +1,5 @@ +use std::any::TypeId; + use crate::{ cmd_output, cmds::{ @@ -36,7 +38,7 @@ async fn collect(args: &Arg, _ctx: &JVCommandContext) -> Result Result<(Box, String), CmdExecuteError> { +) -> Result<(Box, TypeId), CmdExecuteError> { let output = JVHexOutput { data: collect.data }; cmd_output!(output, JVHexOutput) } -- cgit