From b50d18169adc784c85c4aee26065147841aa62ac Mon Sep 17 00:00:00 2001 From: zjb0807 Date: Thu, 24 Apr 2025 14:11:12 +0800 Subject: [PATCH] fix clippy --- vesting/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vesting/src/lib.rs b/vesting/src/lib.rs index 0490be5ed..2209eb1e0 100644 --- a/vesting/src/lib.rs +++ b/vesting/src/lib.rs @@ -59,7 +59,10 @@ pub const VESTING_LOCK_ID: LockIdentifier = *b"ormlvest"; /// Benefits would be granted gradually, `per_period` amount every `period` /// of blocks after `start`. #[derive(Clone, Encode, Decode, PartialEq, Eq, RuntimeDebug, MaxEncodedLen, TypeInfo)] -pub struct VestingSchedule { +pub struct VestingSchedule +where + Balance: MaxEncodedLen + HasCompact, +{ /// Vesting starting block pub start: BlockNumber, /// Number of blocks between vest