diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-26 00:51:45 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-26 01:02:42 +0800 |
| commit | e3aeb6a1c9955eee2c396230317e63becd24ec6a (patch) | |
| tree | 5c70b2a73fb32ed1a717463c81a99e346d3c25e6 /src/cmds/cmd/status.rs | |
| parent | ae06e0b30a328508f48c108fabcccdf1d23c5643 (diff) | |
Replace string type identifiers with TypeId for command output matching
Diffstat (limited to 'src/cmds/cmd/status.rs')
| -rw-r--r-- | src/cmds/cmd/status.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |
