make capabilities optional in Account::new

proxy-updates
Ujjwal Sharma 2021-08-07 18:04:19 +05:30
parent 406ca3be53
commit e90e83c310
Failed to generate hash of commit
1 changed files with 2 additions and 2 deletions

View File

@ -260,13 +260,13 @@ impl Account {
name: String, name: String,
is_personal: bool, is_personal: bool,
is_read_only: bool, is_read_only: bool,
account_capabilities: HashMap<String, Value>, capabilities: Option<HashMap<String, Value>>,
) -> Self { ) -> Self {
Self { Self {
name, name,
is_personal, is_personal,
is_read_only, is_read_only,
account_capabilities, account_capabilities: capabilities.unwrap_or_default(),
extra_properties: HashMap::default(), extra_properties: HashMap::default(),
} }
} }