Rewrap all comments to 100 line width (#9490)

* reformat everything again

* manual formatting

* last manual fix

* Fix build
This commit is contained in:
Kian Paimani
2021-08-11 16:56:55 +02:00
committed by GitHub
parent 8180c58700
commit abd08e29ce
258 changed files with 1776 additions and 1447 deletions
+10 -9
View File
@@ -401,9 +401,9 @@ pub mod pallet {
/// origin is removed as a runner-up.
/// - `origin` is a current member. In this case, the deposit is unreserved and origin is
/// removed as a member, consequently not being a candidate for the next round anymore.
/// Similar to [`remove_member`](Self::remove_member), if replacement runners exists,
/// they are immediately used. If the prime is renouncing, then no prime will exist until
/// the next round.
/// Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they
/// are immediately used. If the prime is renouncing, then no prime will exist until the
/// next round.
///
/// The dispatch origin of this call must be signed, and have one of the above roles.
///
@@ -673,9 +673,10 @@ pub mod pallet {
"Genesis member does not have enough stake.",
);
// Note: all members will only vote for themselves, hence they must be given exactly
// their own stake as total backing. Any sane election should behave as such.
// Nonetheless, stakes will be updated for term 1 onwards according to the election.
// Note: all members will only vote for themselves, hence they must be given
// exactly their own stake as total backing. Any sane election should behave as
// such. Nonetheless, stakes will be updated for term 1 onwards according to the
// election.
Members::<T>::mutate(|members| {
match members.binary_search_by(|m| m.who.cmp(member)) {
Ok(_) =>
@@ -692,9 +693,9 @@ pub mod pallet {
});
// set self-votes to make persistent. Genesis voters don't have any bond, nor do
// they have any lock. NOTE: this means that we will still try to remove a lock once
// this genesis voter is removed, and for now it is okay because remove_lock is noop
// if lock is not there.
// they have any lock. NOTE: this means that we will still try to remove a lock
// once this genesis voter is removed, and for now it is okay because
// remove_lock is noop if lock is not there.
<Voting<T>>::insert(
&member,
Voter { votes: vec![member.clone()], stake: *stake, deposit: Zero::zero() },