mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
Fix warnings when compiling runtime. (#4332)
* Remove warnings when compiling runtime. * Remove dispatch::Result imports. * Add missing imports. * Fix missing vecs. #4333 * Fix oom function. * Remove superfluous import. * More warnings.
This commit is contained in:
committed by
Bastian Köcher
parent
057e298b1f
commit
1f84d6d41d
@@ -84,14 +84,14 @@
|
||||
//! ### Simple Code Snippet
|
||||
//!
|
||||
//! ```rust,ignore
|
||||
//! use support::{decl_module, dispatch::Result};
|
||||
//! use support::{decl_module, dispatch};
|
||||
//! use system::ensure_signed;
|
||||
//!
|
||||
//! pub trait Trait: assets::Trait { }
|
||||
//!
|
||||
//! decl_module! {
|
||||
//! pub struct Module<T: Trait> for enum Call where origin: T::Origin {
|
||||
//! pub fn issue_token_airdrop(origin) -> Result {
|
||||
//! pub fn issue_token_airdrop(origin) -> dispatch::Result {
|
||||
//! const ACCOUNT_ALICE: u64 = 1;
|
||||
//! const ACCOUNT_BOB: u64 = 2;
|
||||
//! const COUNT_AIRDROP_RECIPIENTS = 2;
|
||||
|
||||
Reference in New Issue
Block a user