Hide metadata function for in decl_event, and add doc for GenesisConfig (#5431)

* hide metadata function for non generic event

* add doc for decl_storage
This commit is contained in:
thiolliere authored and GitHub committed 2020-03-27 21:40:12 +01:00
1 parent 3ec1d1b491
commit 2138004fc8
2 files changed
+3

No files matched your search

+1
View File
@@ -288,6 +288,7 @@ macro_rules! __decl_generic_event {
}
impl<$( $generic_param ),* $(, $instance)?> RawEvent<$( $generic_param ),* $(, $instance)?> {
#[allow(dead_code)]
#[doc(hidden)]
pub fn metadata() -> &'static [$crate::event::EventMetadata] {
$crate::__events_to_metadata!(; $( $events )* )
}