Skip to content

Commit 662d1ee

Browse files
committed
chore: make clippy happy
1 parent baed2fb commit 662d1ee

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

contract/src/lib.rs

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use near_plugins::{
2-
access_control, access_control_any, pause, AccessControlRole, AccessControllable, Pausable,
3-
Upgradable,
2+
access_control, access_control_any, AccessControlRole, AccessControllable, Pausable, Upgradable,
43
};
54
use near_sdk::borsh::BorshDeserialize;
65
use near_sdk::collections::LazyOption;
@@ -201,13 +200,10 @@ impl AuroraControllerFactory {
201200
}),
202201
);
203202

204-
let arguments = pause_arguments.map_or_else(
205-
|| vec![],
206-
|args| {
207-
near_sdk::serde_json::to_vec(&args)
208-
.unwrap_or_else(|e| panic!("bad format of the pause arguments: {e}"))
209-
},
210-
);
203+
let arguments = pause_arguments.map_or_else(Vec::new, |args| {
204+
near_sdk::serde_json::to_vec(&args)
205+
.unwrap_or_else(|e| panic!("bad format of the pause arguments: {e}"))
206+
});
211207
let gas = env::prepaid_gas().saturating_sub(OUTER_DELEGATE_PAUSE_GAS);
212208

213209
Promise::new(receiver_id).function_call(

0 commit comments

Comments
 (0)