mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
Migrate everything to the 2018 edition (#1758)
This commit is contained in:
committed by
Gav Wood
parent
a61c218cc3
commit
ff5e4ca87e
@@ -7,6 +7,7 @@ use substrate_cli::{informant, parse_and_execute, NoCustom};
|
||||
use substrate_service::{ServiceFactory, Roles as ServiceRoles};
|
||||
use crate::chain_spec;
|
||||
use std::ops::Deref;
|
||||
use log::info;
|
||||
|
||||
/// Parse command line arguments into service configuration.
|
||||
pub fn run<I, T, E>(args: I, exit: E, version: VersionInfo) -> error::Result<()> where
|
||||
|
||||
@@ -3,17 +3,6 @@
|
||||
#![warn(missing_docs)]
|
||||
#![warn(unused_extern_crates)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate error_chain;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
#[macro_use]
|
||||
extern crate substrate_network as network;
|
||||
#[macro_use]
|
||||
extern crate substrate_executor;
|
||||
#[macro_use]
|
||||
extern crate substrate_service;
|
||||
|
||||
mod chain_spec;
|
||||
mod service;
|
||||
mod cli;
|
||||
@@ -33,4 +22,4 @@ fn run() -> cli::error::Result<()> {
|
||||
cli::run(::std::env::args(), cli::Exit, version)
|
||||
}
|
||||
|
||||
quick_main!(run);
|
||||
error_chain::quick_main!(run);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#![warn(unused_extern_crates)]
|
||||
|
||||
use std::sync::Arc;
|
||||
use log::info;
|
||||
use transaction_pool::{self, txpool::{Pool as TransactionPool}};
|
||||
use node_template_runtime::{self, GenesisConfig, opaque::Block, RuntimeApi};
|
||||
use substrate_service::{
|
||||
@@ -16,6 +17,9 @@ use consensus::{import_queue, start_aura, AuraImportQueue, SlotDuration, Nothing
|
||||
use substrate_client as client;
|
||||
use primitives::ed25519::Pair;
|
||||
use inherents::InherentDataProviders;
|
||||
use network::construct_simple_protocol;
|
||||
use substrate_executor::native_executor_instance;
|
||||
use substrate_service::construct_service_factory;
|
||||
|
||||
pub use substrate_executor::NativeExecutor;
|
||||
// Our native executor instance.
|
||||
|
||||
Reference in New Issue
Block a user