frame/proc-macro: Refactor code for better readability (#4712)
Small refactoring PR to improve the readability of the proc macros. - small improvement in docs - use new `let Some(..) else` expression - removed extra indentations by early returns Discovered during metadata v16 poc, extracted from: https://github.com/paritytech/polkadot-sdk/pull/4358 --------- Signed-off-by:Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by:
Bastian Köcher <git@kchr.de> Co-authored-by: command-bot <> Co-authored-by:
gupnik <mail.guptanikhil@gmail.com>
parent
48d875d0
Showing
- substrate/frame/support/procedural/src/pallet/expand/constants.rs 1 addition, 2 deletions...e/frame/support/procedural/src/pallet/expand/constants.rs
- substrate/frame/support/procedural/src/pallet/parse/config.rs 61 additions, 67 deletions...trate/frame/support/procedural/src/pallet/parse/config.rs
- substrate/frame/support/procedural/src/pallet/parse/helper.rs 8 additions, 8 deletions...trate/frame/support/procedural/src/pallet/parse/helper.rs
Please register or sign in to comment