Skip to content

Commit 90e8c47

Browse files
committed
Apply fmt
1 parent 59bbe4b commit 90e8c47

File tree

1 file changed

+3
-4
lines changed
  • near-plugins-derive/tests/contracts/access_controllable/src

1 file changed

+3
-4
lines changed

near-plugins-derive/tests/contracts/access_controllable/src/lib.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ impl Counter {
3737
/// identifier of the enum variant, i.e. `"Updater"` for `Role::Updater`.
3838
#[init]
3939
pub fn new(admins: HashMap<String, AccountId>, grantees: HashMap<String, AccountId>) -> Self {
40-
let mut contract = Self {
41-
counter: 0,
42-
};
40+
let mut contract = Self { counter: 0 };
4341
contract.acl_init_storage();
4442

4543
if admins.len() > 0 || grantees.len() > 0 {
@@ -154,7 +152,8 @@ impl Counter {
154152

155153
#[private]
156154
pub fn acl_revoke_role_unchecked(&mut self, role: Role, account_id: AccountId) -> bool {
157-
self.acl_get().revoke_role_unchecked(role.into(), &account_id)
155+
self.acl_get()
156+
.revoke_role_unchecked(role.into(), &account_id)
158157
}
159158

160159
#[private]

0 commit comments

Comments
 (0)