From a217f4c75def40889710cfcf776ff827745fb6ff Mon Sep 17 00:00:00 2001 From: Joris Date: Fri, 7 Feb 2025 10:49:24 +0100 Subject: Use &str instead of String in funcion params when possible --- src/gui/form/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/form/mod.rs') diff --git a/src/gui/form/mod.rs b/src/gui/form/mod.rs index 197bc14..a14fb82 100644 --- a/src/gui/form/mod.rs +++ b/src/gui/form/mod.rs @@ -256,10 +256,10 @@ pub async fn show(app: &App, target: Target) { match event::validate( id, - date.buffer().text().to_string(), - name.buffer().text().to_string(), - start.buffer().text().to_string(), - end.buffer().text().to_string(), + &date.buffer().text(), + &name.buffer().text(), + &start.buffer().text(), + &end.buffer().text(), repetition, category, ) { -- cgit v1.2.3