aboutsummaryrefslogtreecommitdiff
path: root/src/gui/form/mod.rs
diff options
context:
space:
mode:
authorJoris2025-02-07 10:49:24 +0100
committerJoris2025-02-07 10:49:24 +0100
commita217f4c75def40889710cfcf776ff827745fb6ff (patch)
tree837d4175b7786284a89d1cc41df518e23c8bc0b0 /src/gui/form/mod.rs
parent99fe1002c5961dcf5063b7ed51a9dfc426f96ace (diff)
Use &str instead of String in funcion params when possible
Diffstat (limited to 'src/gui/form/mod.rs')
-rw-r--r--src/gui/form/mod.rs8
1 files changed, 4 insertions, 4 deletions
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,
) {