Fix more nits.

This commit is contained in:
Gav
2018-02-08 08:51:57 +01:00
parent 8c1b79c7e8
commit fde80b7b27
3 changed files with 2 additions and 26 deletions
-24
View File
@@ -1,24 +0,0 @@
[package]
name = "polkadot-cli"
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
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" }
+1 -1
View File
@@ -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<Vec<u8>>;
+1 -1
View File
@@ -49,7 +49,7 @@ impl NativeExecutionDispatch for LocalNativeExecutionDispatch {
/// Creates new RustExecutor for contracts.
pub fn executor() -> NativeExecutor<LocalNativeExecutionDispatch> {
NativeExecutor{ _dummy: ::std::marker::PhantomData }
NativeExecutor { _dummy: ::std::marker::PhantomData }
}
#[cfg(test)]