Make sure docs given to decl_module! are passed to the module struct (#4526)

This commit is contained in:
Bastian Köcher
2020-01-03 21:39:30 +01:00
committed by Gavin Wood
parent a45aa6e1b6
commit f02e6d680a
3 changed files with 39 additions and 13 deletions
+17
View File
@@ -16,3 +16,20 @@
//! Test crate for frame_support. Allow to make use of `frame_support::decl_storage`.
//! See tests directory.
// Make sure we fail compilation on warnings
#![warn(missing_docs)]
#![deny(warnings)]
/// The configuration trait
pub trait Trait {
/// The runtime origin type.
type Origin;
/// The block number type.
type BlockNumber;
}
frame_support::decl_module! {
/// Some test module
pub struct Module<T: Trait> for enum Call where origin: T::Origin {}
}