mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 21:37:55 +08:00
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:
committed by
Clément DOUIN
parent
59fefd7c78
commit
f7a7937cb1
@@ -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,
|
||||
)?;
|
||||
|
||||
Reference in New Issue
Block a user