diff options
Diffstat (limited to 'src/cmds')
| -rw-r--r-- | src/cmds/cmd/hexdump.rs | 4 | ||||
| -rw-r--r-- | src/cmds/cmd/sheetdump.rs | 4 | ||||
| -rw-r--r-- | src/cmds/cmd/status.rs | 4 |
3 files changed, 8 insertions, 4 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) } diff --git a/src/cmds/cmd/sheetdump.rs b/src/cmds/cmd/sheetdump.rs index 3b0953a..defb8ff 100644 --- a/src/cmds/cmd/sheetdump.rs +++ b/src/cmds/cmd/sheetdump.rs @@ -1,3 +1,5 @@ +use std::any::TypeId; + use crate::{ cmd_output, cmds::{ @@ -46,7 +48,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 mappings = collect.sheet.mappings(); let mut mappings_vec = mappings.iter().cloned().collect::<Vec<LocalMapping>>(); if input.sort { diff --git a/src/cmds/cmd/status.rs b/src/cmds/cmd/status.rs index c1f2a96..5d5f4a3 100644 --- a/src/cmds/cmd/status.rs +++ b/src/cmds/cmd/status.rs @@ -1,4 +1,4 @@ -use std::{collections::HashMap, time::SystemTime}; +use std::{any::TypeId, collections::HashMap, time::SystemTime}; use crate::{ cmd_output, @@ -84,7 +84,7 @@ async fn collect(_args: &Arg, _ctx: &JVCommandContext) -> Result<Collect, CmdPre 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 mut wrong_modified_items: HashMap<ModifiedRelativePathBuf, JVStatusWrongModifyReason> = HashMap::new(); |
