Skip to content

Commit 0ef16e5

Browse files
committed
cargo fmt
1 parent 2059dc9 commit 0ef16e5

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

substrate/frame/conviction-voting/src/traits.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use frame_support::dispatch::DispatchResult;
2323
use scale_info::TypeInfo;
2424
use sp_runtime::RuntimeDebug;
2525

26-
2726
/// Represents the differents states of a referendum.
2827
/// None: The referendum is not started.
2928
/// Ongoing: The referendum is ongoing.
@@ -64,9 +63,9 @@ pub trait VotingHooks<AccountId, Index, Balance> {
6463
fn on_vote_worst_case(who: &AccountId);
6564

6665
/// Will be called by benchmarking before calling `on_remove_vote` in a benchmark.
67-
///
68-
/// Should setup the state in such a way that when `on_remove_vote` is called it will
69-
/// take the worst case path performance wise.
66+
///
67+
/// Should setup the state in such a way that when `on_remove_vote` is called it will
68+
/// take the worst case path performance wise.
7069
#[cfg(feature = "runtime-benchmarks")]
7170
fn on_remove_vote_worst_case(who: &AccountId);
7271
}

substrate/frame/conviction-voting/src/vote.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,10 @@ pub enum AccountVote<Balance> {
9292
SplitAbstain { aye: Balance, nay: Balance, abstain: Balance },
9393
}
9494

95-
9695
/// present the conditions under which an account's Funds are locked after a voting action.
9796
/// - `Status(bool)`: Implement a locking period if the referendum passed and `bool` is `true`.
9897
/// - `Always`: lock the funds regardless of the outcome of the referendum.
99-
#[derive(
100-
Copy,
101-
Clone,
102-
Eq,
103-
PartialEq,
104-
RuntimeDebug,
105-
)]
98+
#[derive(Copy, Clone, Eq, PartialEq, RuntimeDebug)]
10699
pub enum LockedIf {
107100
Status(bool),
108101
Always,

0 commit comments

Comments
 (0)