-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
pub struct Module<T: Trait> for enum Call where origin: T::Origin {} | ||
} | ||
|
||
impl_event!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer to keep naming consistently decl_
for this stuff
} | ||
impl_event!( | ||
pub enum Event<T> with RawEvent<AccountId, AccountIndex, Balance> | ||
where <T as system::Trait>::AccountId, <T as Trait>::AccountIndex, <T as Trait>::Balance { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to avoid the problem of the indentation change not reflecting the block start, we move the trailing curly to the previous indent level and give it its own line in these circumstances., so this would become:
pub enum Event<T> with RawEvent<AccountId, AccountIndex, Balance>
where <T as system::Trait>::AccountId, <T as Trait>::AccountIndex, <T as Trait>::Balance
{
/// A new account was created.
if the where
clause becomes too big then this works:
pub enum Event<T> with RawEvent<AccountId, AccountIndex, Balance> where
<T as system::Trait>::AccountId,
<T as Trait>::AccountIndex,
<T as Trait>::Balance
{
/// A new account was created.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some style nits that can be fixed, but otherwise looks great.
* Add EvilValidatorsPerSession and fix other nits * Split out slash.rs in staking
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 2.0.1 to 2.2.0. - [Release notes](https://github.com/Swatinem/rust-cache/releases) - [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md) - [Commits](Swatinem/rust-cache@22c9328...359a70e) --- updated-dependencies: - dependency-name: Swatinem/rust-cache dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
No description provided.