Browse Source

make capabilities optional in Account::new

proxy-updates
Ujjwal Sharma 4 months ago
parent
commit
e90e83c310
No known key found for this signature in database GPG Key ID: 460B292812C67D9F
  1. 4
      src/rfc8620.rs

4
src/rfc8620.rs

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

Loading…
Cancel
Save