From 41648ced34c654f04e35183967607ad39ebbe363 Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Sun, 5 May 2024 20:01:36 +0530 Subject: [PATCH] Linting fixes --- src/app.rs | 2 +- src/runner.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index ea6384e..e4700df 100644 --- a/src/app.rs +++ b/src/app.rs @@ -387,7 +387,7 @@ impl App { } if let Some(sorters) = &config.general.initial_sorting { - explorer_config.sorters = sorters.clone(); + explorer_config.sorters.clone_from(sorters); }; let hostname = gethostname().to_string_lossy().to_string(); diff --git a/src/runner.rs b/src/runner.rs index c5e2c1e..4470135 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -474,7 +474,7 @@ impl Runner { } if app.pwd != last_pwd { - last_pwd = app.pwd.clone(); + last_pwd.clone_from(&app.pwd); // $PWD watcher tx_pwd_watcher.send(app.pwd.clone())?;