remove reference over trait implemented type

Reasons:
- String already implement the AsRef<str>.

Signed-off-by: Perma Alesheikh <me@prma.dev>
This commit is contained in:
Perma Alesheikh 2024-01-09 13:57:48 +03:30 committed by Clément DOUIN
parent 2ef477c225
commit 945c567f35
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72
2 changed files with 2 additions and 2 deletions

View file

@ -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))
}

View file

@ -91,7 +91,7 @@ pub(crate) async fn configure(path: PathBuf) -> Result<TomlConfig> {
))
.default(path.to_string_lossy().to_string())
.interact()?;
let path = expand::path(&path);
let path = expand::path(path);
println!("Writing the configuration to {path:?}");