use as_deref instead of as_ref for account.name

Reasons:
- More concise.
- Avoids the need for map(String::str).

Signed-off-by: Perma Alesheikh <me@prma.dev>
This commit is contained in:
Perma Alesheikh
2024-01-09 12:35:32 +03:30
committed by Clément DOUIN
parent 59fefd7c78
commit f7a7937cb1
26 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ impl FolderDeleteCommand {
};
let (toml_account_config, account_config) = config.clone().into_account_configs(
self.account.name.as_ref().map(String::as_str),
self.account.name.as_deref(),
#[cfg(feature = "account-sync")]
self.cache.disable,
)?;