mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
Make sure docs given to decl_module! are passed to the module struct (#4526)
This commit is contained in:
committed by
Gavin Wood
parent
a45aa6e1b6
commit
f02e6d680a
@@ -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 {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user