Skip to content

Commit 4f7a5da

Browse files
authored
remove some unecessary bound (#7813)
1 parent c71b35c commit 4f7a5da

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

rpc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl<C, Block, Balance> TransactionPaymentApi<<Block as BlockT>::Hash, RuntimeDi
7373
for TransactionPayment<C, Block>
7474
where
7575
Block: BlockT,
76-
C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>,
76+
C: 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>,
7777
C::Api: TransactionPaymentRuntimeApi<Block, Balance>,
7878
Balance: Codec + MaybeDisplay + MaybeFromStr,
7979
{

src/lib.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,6 @@ impl<T: Config> Module<T> where
314314
len: u32,
315315
) -> RuntimeDispatchInfo<BalanceOf<T>>
316316
where
317-
T: Send + Sync,
318-
BalanceOf<T>: Send + Sync,
319317
T::Call: Dispatchable<Info=DispatchInfo>,
320318
{
321319
// NOTE: we can actually make it understand `ChargeTransactionPayment`, but would be some
@@ -444,9 +442,9 @@ impl<T> Convert<Weight, BalanceOf<T>> for Module<T> where
444442
/// Require the transactor pay for themselves and maybe include a tip to gain additional priority
445443
/// in the queue.
446444
#[derive(Encode, Decode, Clone, Eq, PartialEq)]
447-
pub struct ChargeTransactionPayment<T: Config + Send + Sync>(#[codec(compact)] BalanceOf<T>);
445+
pub struct ChargeTransactionPayment<T: Config>(#[codec(compact)] BalanceOf<T>);
448446

449-
impl<T: Config + Send + Sync> ChargeTransactionPayment<T> where
447+
impl<T: Config> ChargeTransactionPayment<T> where
450448
T::Call: Dispatchable<Info=DispatchInfo, PostInfo=PostDispatchInfo>,
451449
BalanceOf<T>: Send + Sync + FixedPointOperand,
452450
{
@@ -494,7 +492,7 @@ impl<T: Config + Send + Sync> ChargeTransactionPayment<T> where
494492
}
495493
}
496494

497-
impl<T: Config + Send + Sync> sp_std::fmt::Debug for ChargeTransactionPayment<T> {
495+
impl<T: Config> sp_std::fmt::Debug for ChargeTransactionPayment<T> {
498496
#[cfg(feature = "std")]
499497
fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
500498
write!(f, "ChargeTransactionPayment<{:?}>", self.0)
@@ -505,7 +503,7 @@ impl<T: Config + Send + Sync> sp_std::fmt::Debug for ChargeTransactionPayment<T>
505503
}
506504
}
507505

508-
impl<T: Config + Send + Sync> SignedExtension for ChargeTransactionPayment<T> where
506+
impl<T: Config> SignedExtension for ChargeTransactionPayment<T> where
509507
BalanceOf<T>: Send + Sync + From<u64> + FixedPointOperand,
510508
T::Call: Dispatchable<Info=DispatchInfo, PostInfo=PostDispatchInfo>,
511509
{

0 commit comments

Comments
 (0)