mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-05 17:15:12 +00: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:
parent
6173495cb6
commit
d2ad386eaa
|
@ -95,7 +95,7 @@ impl AccountSyncCommand {
|
||||||
None
|
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) =
|
let (toml_account_config, account_config) =
|
||||||
config.clone().into_account_configs(account, true)?;
|
config.clone().into_account_configs(account, true)?;
|
||||||
let account_name = account_config.name.as_str();
|
let account_name = account_config.name.as_str();
|
||||||
|
|
Loading…
Reference in a new issue