You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Err: `config = [expr]` is present along other parameters, which is not allowed.
449
-
(Some(_), _) => returnbail!(&*item,"`#[rpc(config = ...)]` is mutually exclusive with any other parameters(`any_peer`, `reliable`, `call_local`, `channel = 0`)"),
450
-
// Ok: `config` is not present, any combination of the other parameters is allowed..
453
+
(Some(_), _) => returnbail!(
454
+
&*item,
455
+
"`#[rpc(config = ...)]` is mutually exclusive with any other parameters(`any_peer`, `reliable`, `call_local`, `channel = 0`)"
456
+
),
457
+
458
+
// Ok: `config` is not present, any combination of the other parameters is allowed.
451
459
_ => RpcAttr::SeparatedArgs{
452
460
rpc_mode,
453
461
transfer_mode,
@@ -476,19 +484,21 @@ where
476
484
477
485
let attr_name = attr_name.clone();
478
486
479
-
// Remaining code no longer has attribute -- rest stays
480
-
attributes.remove(index - 1);// -1 because we bumped the index at the beginning of the loop
487
+
// Remaining code no longer has attribute -- rest stays.
488
+
attributes.remove(index - 1);// -1 because we bumped the index at the beginning of the loop.
0 commit comments