From 27821a290d245017bade2b73abf59b298a65372e Mon Sep 17 00:00:00 2001 From: mgros Date: Sun, 7 Jun 2026 02:15:14 +0200 Subject: [PATCH] fix unnecessary casting and resulting clippy warning. type &'static str instead of String is ok. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index b1d24052..3f631eb8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -236,11 +236,11 @@ fn main() { eprintln!("Error: exiting -- {}", errors_to_string(&e)); exit(1); }; - match do_navigate_command("ZoomIn".to_string()) { + match do_navigate_command("ZoomIn") { Err(e) => {eprintln!("Error: exiting -- {}", errors_to_string(&e)); exit(1);}, Ok(speech) => info!("\nZoomIn speech: '{speech}'"), } - match do_navigate_command("ZoomIn".to_string()) { + match do_navigate_command("ZoomIn") { Err(e) => {eprintln!("Error: exiting -- {}", errors_to_string(&e)); exit(1);}, Ok(speech) => info!("\nZoomIn speech: '{speech}'"), }