From 7794508262da1549c2e36141bf206e41de40c18a Mon Sep 17 00:00:00 2001 From: gtema Date: Sat, 6 Sep 2025 15:39:22 +0200 Subject: [PATCH] [rust_cli] Consume result In the last change we started calling the "show_command_hint" function, but missed to consume it's result. Change-Id: Icbbe52494db088c12d7cf77f8d179dfd9472c8a7 Signed-off-by: gtema --- codegenerator/templates/rust_cli/impl.rs.j2 | 2 +- codegenerator/tests/unit/test_rust_cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codegenerator/templates/rust_cli/impl.rs.j2 b/codegenerator/templates/rust_cli/impl.rs.j2 index 2bb82db..5dbfe70 100644 --- a/codegenerator/templates/rust_cli/impl.rs.j2 +++ b/codegenerator/templates/rust_cli/impl.rs.j2 @@ -267,7 +267,7 @@ impl {{ target_class_name }}Command { {%- endif %} {#- specialities #} // Show command specific hints - op.show_command_hint(); + op.show_command_hint()?; Ok(()) } } diff --git a/codegenerator/tests/unit/test_rust_cli.py b/codegenerator/tests/unit/test_rust_cli.py index e178f45..f47d043 100644 --- a/codegenerator/tests/unit/test_rust_cli.py +++ b/codegenerator/tests/unit/test_rust_cli.py @@ -114,7 +114,7 @@ impl fooCommand { let data = ep.query_async(client).await?; op.output_single::(data)?; // Show command specific hints - op.show_command_hint(); + op.show_command_hint()?; Ok(()) } }