From 7317d893825eac407316edbbc03fa74183652950 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Sat, 9 Apr 2022 21:12:21 -0400 Subject: [PATCH] clippy --- src/widgets.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets.rs b/src/widgets.rs index 9f67636..b1e9d97 100644 --- a/src/widgets.rs +++ b/src/widgets.rs @@ -36,7 +36,7 @@ impl<'a> AutoComplete<'a> { fn changed(&mut self, string: &str) { let new_func_option = Some(string.to_string()); if self.string != new_func_option { - self.string = new_func_option.clone(); + self.string = new_func_option; self.hint = generate_hint(string); } }