Skip to content

Commit b115390

Browse files
committed
fix clippy
1 parent 8ca602b commit b115390

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

payments/src/types.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ pub enum Task {
117117

118118
/// The details of a scheduled task
119119
#[derive(PartialEq, Eq, Clone, Encode, Decode, DecodeWithMemTracking, Debug, TypeInfo, MaxEncodedLen)]
120-
pub struct ScheduledTask<Time: HasCompact> {
120+
pub struct ScheduledTask<Time>
121+
where
122+
Time: HasCompact,
123+
{
121124
/// the type of scheduled task
122125
pub task: Task,
123126
/// the 'time' at which the task should be executed

rewards/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ use sp_std::{borrow::ToOwned, collections::btree_map::BTreeMap, fmt::Debug, prel
1818

1919
/// The Reward Pool Info.
2020
#[derive(Clone, Encode, Decode, DecodeWithMemTracking, PartialEq, Eq, RuntimeDebug, TypeInfo)]
21-
pub struct PoolInfo<Share: HasCompact, Balance: HasCompact, CurrencyId: Ord> {
21+
pub struct PoolInfo<Share, Balance, CurrencyId>
22+
where
23+
Share: HasCompact,
24+
Balance: HasCompact,
25+
CurrencyId: Ord,
26+
{
2227
/// Total shares amount
2328
pub total_shares: Share,
2429
/// Reward infos <reward_currency, (total_reward, total_withdrawn_reward)>

traits/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ pub enum Change<Value> {
7070

7171
#[derive(Encode, Decode, DecodeWithMemTracking, RuntimeDebug, Eq, PartialEq, Ord, PartialOrd, Clone, Copy)]
7272
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
73-
pub struct TimestampedValue<Value: Ord + PartialOrd, Moment> {
73+
pub struct TimestampedValue<Value, Moment>
74+
where
75+
Value: Ord + PartialOrd,
76+
{
7477
pub value: Value,
7578
pub timestamp: Moment,
7679
}

0 commit comments

Comments
 (0)