From 6c8f59502f3bb0279eae1091f19a7c0bb458a2c7 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 23 Apr 2024 15:55:28 +0100 Subject: Add name() to Action trait --- src/actions/terminal_print.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/actions/terminal_print.rs') diff --git a/src/actions/terminal_print.rs b/src/actions/terminal_print.rs index 02536c7..e0c8599 100644 --- a/src/actions/terminal_print.rs +++ b/src/actions/terminal_print.rs @@ -17,6 +17,8 @@ impl<'a> TerminalPrintAction<'a> { #[async_trait] impl Action<'_> for TerminalPrintAction<'_> { + fn name(&self) -> &'static str { "terminal_print" } + async fn run(&self, params: Option<&MessageParams<'_, '_>>) -> Result<()> { println!( "{}\n{}\n", -- cgit v1.2.3-70-g09d2