Skip to content

Commit 4d7bb1f

Browse files
committed
Apply cargo fmt
1 parent 59bbe4b commit 4d7bb1f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
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]

near-plugins/src/access_controllable.rs

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ pub trait AccessControllable {
2929
/// ```
3030
fn acl_storage_prefix() -> &'static [u8];
3131

32-
3332
/// Initialize the access control storage.
3433
fn acl_init_storage(&self);
3534

0 commit comments

Comments
 (0)