mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 21:37:56 +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
@@ -2,7 +2,7 @@ macro_rules! reserved {
|
||||
($($reserved:ident)*) => {
|
||||
$(
|
||||
mod $reserved {
|
||||
pub use support::dispatch::Result;
|
||||
pub use support::dispatch;
|
||||
|
||||
pub trait Trait {
|
||||
type Origin;
|
||||
@@ -10,16 +10,16 @@ macro_rules! reserved {
|
||||
}
|
||||
|
||||
pub mod system {
|
||||
use support::dispatch::Result;
|
||||
use support::dispatch;
|
||||
|
||||
pub fn ensure_root<R>(_: R) -> Result {
|
||||
pub fn ensure_root<R>(_: R) -> dispatch::Result {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
support::decl_module! {
|
||||
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
|
||||
fn $reserved(_origin) -> Result { unreachable!() }
|
||||
fn $reserved(_origin) -> dispatch::Result { unreachable!() }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user