summaryrefslogtreecommitdiff
path: root/src/cmds/cmd/hexdump.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-02-26 00:51:45 +0800
committer魏曹先生 <1992414357@qq.com>2026-02-26 01:02:42 +0800
commite3aeb6a1c9955eee2c396230317e63becd24ec6a (patch)
tree5c70b2a73fb32ed1a717463c81a99e346d3c25e6 /src/cmds/cmd/hexdump.rs
parentae06e0b30a328508f48c108fabcccdf1d23c5643 (diff)
Replace string type identifiers with TypeId for command output matching
Diffstat (limited to 'src/cmds/cmd/hexdump.rs')
-rw-r--r--src/cmds/cmd/hexdump.rs4
1 files changed, 3 insertions, 1 deletions
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<Collect, CmdPrep
async fn exec(
_input: In,
collect: Collect,
-) -> Result<(Box<dyn std::any::Any + Send + 'static>, String), CmdExecuteError> {
+) -> Result<(Box<dyn std::any::Any + Send + 'static>, TypeId), CmdExecuteError> {
let output = JVHexOutput { data: collect.data };
cmd_output!(output, JVHexOutput)
}