mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-16 20:57:53 +08:00
use as as_deref instead of as_ref and mapping on str
Reasons: - Make the code more direct and concise. Signed-off-by: Perma Alesheikh <me@prma.dev>
This commit is contained in:
committed by
Clément DOUIN
parent
6173495cb6
commit
d2ad386eaa
@@ -95,7 +95,7 @@ impl AccountSyncCommand {
|
||||
None
|
||||
};
|
||||
|
||||
let account = self.account.name.as_ref().map(String::as_str);
|
||||
let account = self.account.name.as_deref();
|
||||
let (toml_account_config, account_config) =
|
||||
config.clone().into_account_configs(account, true)?;
|
||||
let account_name = account_config.name.as_str();
|
||||
|
||||
Reference in New Issue
Block a user