cli: avoid useless .into()

This needs latest proxmox-api updates.
This commit is contained in:
Dietmar Maurer
2019-12-09 17:40:34 +01:00
parent eb7e2ee00b
commit 48ef3c3327
5 changed files with 40 additions and 50 deletions

View File

@ -61,10 +61,11 @@ fn quit_command() -> Result<(), Error> {
fn cli_definition() -> CommandLineInterface {
let cmd_def = CliCommandMap::new()
.insert("quit", CliCommand::new(&API_METHOD_QUIT_COMMAND).into())
.insert("hello", CliCommand::new(&API_METHOD_HELLO_COMMAND).into())
.insert("quit", CliCommand::new(&API_METHOD_QUIT_COMMAND))
.insert("hello", CliCommand::new(&API_METHOD_HELLO_COMMAND))
.insert("echo", CliCommand::new(&API_METHOD_ECHO_COMMAND)
.arg_param(&["text"]).into())
.arg_param(&["text"])
)
.insert_help();
CommandLineInterface::Nested(cmd_def)