Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Make decl_event! more ergonomic #723

Merged
merged 3 commits into from
Sep 12, 2018
Merged

Commits on Sep 12, 2018

  1. Improve and simplify decl_event!

    - RawEvent is not required anymore to be written in the defintion
    - Events with and without parameters are now supported everywhere
    bkchr committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    b0bc40b View commit details
    Browse the repository at this point in the history
  2. Make decl_event! more flexible with the automatic naming of generic…

    … parameters
    
    The macro will now automatically derive the name of a generic parameter
    from the trait type name, if no explicit name is given.
    
    `where Balance = <T as Trait>::Balance` can be simplified to
    `where <T as Trait>::Balance`.
    bkchr committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    683cb98 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a09caf8 View commit details
    Browse the repository at this point in the history