From 945c567f35e5454e6f5a6bbd02e7c3bdcbfb05fa Mon Sep 17 00:00:00 2001 From: Perma Alesheikh Date: Tue, 9 Jan 2024 13:57:48 +0330 Subject: [PATCH] remove reference over trait implemented type Reasons: - String already implement the AsRef. Signed-off-by: Perma Alesheikh --- src/config/mod.rs | 2 +- src/config/wizard.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/mod.rs b/src/config/mod.rs index 2eedd13..faea089 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -244,7 +244,7 @@ impl TomlConfig { )), }; - let account_config = config.account(&account_name)?; + let account_config = config.account(account_name)?; Ok((toml_account_config, account_config)) } diff --git a/src/config/wizard.rs b/src/config/wizard.rs index 93813f0..6cfe2f2 100644 --- a/src/config/wizard.rs +++ b/src/config/wizard.rs @@ -91,7 +91,7 @@ pub(crate) async fn configure(path: PathBuf) -> Result { )) .default(path.to_string_lossy().to_string()) .interact()?; - let path = expand::path(&path); + let path = expand::path(path); println!("Writing the configuration to {path:?}…");