--- a/pallets/scheduler/src/lib.rs +++ b/pallets/scheduler/src/lib.rs @@ -86,7 +86,10 @@ use sp_std::{borrow::Borrow, cmp::Ordering, marker::PhantomData, prelude::*}; use frame_support::{ - dispatch::{DispatchError, DispatchResult, Dispatchable, UnfilteredDispatchable, Parameter, GetDispatchInfo}, + dispatch::{ + DispatchError, DispatchResult, Dispatchable, UnfilteredDispatchable, Parameter, + GetDispatchInfo, + }, traits::{ schedule::{self, DispatchTime, MaybeHashed}, NamedReservableCurrency, EnsureOrigin, Get, IsType, OriginTrait, PrivilegeCmp, @@ -231,8 +234,10 @@ /// The aggregated call type. type RuntimeCall: Parameter - + Dispatchable::RuntimeOrigin, PostInfo = PostDispatchInfo> - + UnfilteredDispatchable::RuntimeOrigin> + + Dispatchable< + RuntimeOrigin = ::RuntimeOrigin, + PostInfo = PostDispatchInfo, + > + UnfilteredDispatchable::RuntimeOrigin> + GetDispatchInfo + From>; @@ -455,7 +460,9 @@ } let scheduled_origin = - <::RuntimeOrigin as From>::from(s.origin.clone()); + <::RuntimeOrigin as From>::from( + s.origin.clone(), + ); let ensured_origin = T::ScheduleOrigin::ensure_origin(scheduled_origin.into()); let r = match ensured_origin {