From f71b5ba5748dbe187a83688ae326ac3995167930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristo=CC=81fer=20R?= Date: Sat, 23 Mar 2024 15:02:34 +0000 Subject: [PATCH] fix clippy warning --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index bc7ab8d..1d653b3 100644 --- a/src/app.rs +++ b/src/app.rs @@ -258,7 +258,7 @@ impl eframe::App for TemplateApp { && text_to_insert != "\r" { self.text - .insert_text(&text_to_insert, self.cursor.ccursor.index); + .insert_text(text_to_insert, self.cursor.ccursor.index); Some(self.cursor.ccursor + text_to_insert.len()) } else {