From 77463608e8981b633d7312b0343e7cb23c594e79 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 6 Sep 2024 19:26:20 +0200 Subject: [PATCH] fix clippy lint --- cli/src/ui/save_file_dialog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/ui/save_file_dialog.rs b/cli/src/ui/save_file_dialog.rs index 1662c39..fa411c4 100644 --- a/cli/src/ui/save_file_dialog.rs +++ b/cli/src/ui/save_file_dialog.rs @@ -41,7 +41,7 @@ impl SaveFileDialog { fn file_browser_key_event(&mut self, key_event: KeyEvent) -> Result { let status = self.file_browser.handle_key_event(key_event)?; match status { - ComponentStatus::Closed => self.save_path = self.file_browser.selected.clone(), + ComponentStatus::Closed => self.save_path.clone_from(&self.file_browser.selected), ComponentStatus::Active => { if let Some(filename) = self.file_browser.get_selected_filename() { self.filename_input.set_text(filename);