diff options
Diffstat (limited to 'src/cmds/cmd/helpdoc_list.rs')
| -rw-r--r-- | src/cmds/cmd/helpdoc_list.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cmds/cmd/helpdoc_list.rs b/src/cmds/cmd/helpdoc_list.rs index b4b05cf..6b81b16 100644 --- a/src/cmds/cmd/helpdoc_list.rs +++ b/src/cmds/cmd/helpdoc_list.rs @@ -6,14 +6,13 @@ use crate::{ }, systems::{ cmd::{ - cmd_system::JVCommandContext, + cmd_system::{AnyOutput, JVCommandContext}, errors::{CmdExecuteError, CmdPrepareError}, }, helpdoc::{DEFAULT_HELPDOC, get_helpdoc_list, helpdoc_viewer}, }, }; use cmd_system_macros::exec; -use std::any::TypeId; pub struct JVHelpdocListCommand; type Cmd = JVHelpdocListCommand; @@ -35,10 +34,7 @@ async fn collect(_args: &Arg, _ctx: &JVCommandContext) -> Result<Collect, CmdPre } #[exec] -async fn exec( - _input: In, - _collect: Collect, -) -> Result<(Box<dyn std::any::Any + Send + 'static>, TypeId), CmdExecuteError> { +async fn exec(_input: In, _collect: Collect) -> Result<AnyOutput, CmdExecuteError> { let output = JVHelpdocsOutput { names: get_helpdoc_list().into_iter().map(String::from).collect(), }; |
