Skip to content

Commit

Permalink
fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Sep 6, 2024
1 parent 2723e07 commit 7746360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/ui/save_file_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl SaveFileDialog {
fn file_browser_key_event(&mut self, key_event: KeyEvent) -> Result<ComponentStatus> {
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);
Expand Down

0 comments on commit 7746360

Please sign in to comment.