From fde80b7b27ff45ed2200b464e6434a9652cacb22 Mon Sep 17 00:00:00 2001 From: Gav Date: Thu, 8 Feb 2018 08:51:57 +0100 Subject: [PATCH] Fix more nits. --- substrate/client/src/Cargo.toml | 24 ----------------------- substrate/executor/src/native_executor.rs | 2 +- substrate/polkadot-executor/src/lib.rs | 2 +- 3 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 substrate/client/src/Cargo.toml diff --git a/substrate/client/src/Cargo.toml b/substrate/client/src/Cargo.toml deleted file mode 100644 index 6ab7915afb..0000000000 --- a/substrate/client/src/Cargo.toml +++ /dev/null @@ -1,24 +0,0 @@ -[package] -name = "polkadot-cli" -version = "0.1.0" -authors = ["Parity Technologies "] -description = "Polkadot node implementation in Rust." - -[dependencies] -clap = { version = "2.27", features = ["yaml"] } -env_logger = "0.4" -error-chain = "0.11" -log = "0.3" -hex-literal = "0.1" -ed25519 = { path = "../ed25519" } -triehash = { version = "0.1" } -substrate-client = { path = "../client" } -substrate-codec = { path = "../codec" } -substrate-runtime-io = { path = "../runtime-io" } -substrate-state-machine = { path = "../state-machine" } -substrate-executor = { path = "../executor" } -substrate-primitives = { path = "../primitives" } -substrate-rpc-servers = { path = "../rpc-servers" } -polkadot-primitives = { path = "../polkadot-primitives" } -polkadot-executor = { path = "../polkadot-executor" } -polkadot-runtime = { path = "../polkadot-runtime" } diff --git a/substrate/executor/src/native_executor.rs b/substrate/executor/src/native_executor.rs index 109702b577..e7c9258063 100644 --- a/substrate/executor/src/native_executor.rs +++ b/substrate/executor/src/native_executor.rs @@ -25,7 +25,7 @@ use std::panic::catch_unwind; pub trait NativeExecutionDispatch { /// Get the wasm code that the native dispatch will be equivalent to. fn native_equivalent() -> &'static [u8]; - + /// Dispatch a method and input data to be executed natively. Returns `Some` result or `None` /// if the `method` is unknown. Panics if there's an unrecoverable error. fn dispatch(method: &str, data: &[u8]) -> Option>; diff --git a/substrate/polkadot-executor/src/lib.rs b/substrate/polkadot-executor/src/lib.rs index e1f1603267..8ed3deed71 100644 --- a/substrate/polkadot-executor/src/lib.rs +++ b/substrate/polkadot-executor/src/lib.rs @@ -49,7 +49,7 @@ impl NativeExecutionDispatch for LocalNativeExecutionDispatch { /// Creates new RustExecutor for contracts. pub fn executor() -> NativeExecutor { - NativeExecutor{ _dummy: ::std::marker::PhantomData } + NativeExecutor { _dummy: ::std::marker::PhantomData } } #[cfg(test)]