git.delta.rocks / unique-network / refs/commits / de0fd484c6ec

difftreelog

fix cargo clippy

PraetorP2023-09-29parent: #668280b.patch.diff
in: master

2 files changed

modifiedruntime/common/config/xcm/mod.rsdiffbeforeafterboth
--- a/runtime/common/config/xcm/mod.rs
+++ b/runtime/common/config/xcm/mod.rs
@@ -185,10 +185,10 @@
 	fn allow_utility_call(call: &RuntimeCall) -> bool {
 		match call {
 			RuntimeCall::Utility(pallet_utility::Call::batch { calls, .. }) => {
-				calls.iter().all(|call| Self::allow_gov_and_sys_call(call))
+				calls.iter().all(Self::allow_gov_and_sys_call)
 			}
 			RuntimeCall::Utility(pallet_utility::Call::batch_all { calls, .. }) => {
-				calls.iter().all(|call| Self::allow_gov_and_sys_call(call))
+				calls.iter().all(Self::allow_gov_and_sys_call)
 			}
 			RuntimeCall::Utility(pallet_utility::Call::as_derivative { call, .. }) => {
 				Self::allow_gov_and_sys_call(call)
@@ -197,7 +197,7 @@
 				Self::allow_gov_and_sys_call(call)
 			}
 			RuntimeCall::Utility(pallet_utility::Call::force_batch { calls, .. }) => {
-				calls.iter().all(|call| Self::allow_gov_and_sys_call(call))
+				calls.iter().all(Self::allow_gov_and_sys_call)
 			}
 			_ => false,
 		}
addedvendor/baedeker-librarydiffbeforeafterboth

binary blob — no preview