Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
fix(rpc): lint unused_extern_crates + fix warns (#10489)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored and sorpaas committed Mar 19, 2019
1 parent effead9 commit 78a5346
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ common-types = { path = "../ethcore/types" }
ethash = { path = "../ethash" }
ethcore = { path = "../ethcore", features = ["test-helpers"] }
ethcore-accounts = { path = "../accounts", optional = true }
ethcore-io = { path = "../util/io" }
ethcore-light = { path = "../ethcore/light" }
ethcore-logger = { path = "../parity/logger" }
ethcore-miner = { path = "../miner" }
Expand All @@ -59,17 +58,16 @@ keccak-hash = "0.1.2"
parity-runtime = { path = "../util/runtime" }
parity-updater = { path = "../updater" }
parity-version = { path = "../util/version" }
trie-db = "0.11.0"
rlp = { version = "0.3.0", features = ["ethereum"] }
stats = { path = "../util/stats" }
vm = { path = "../ethcore/vm" }

[dev-dependencies]
ethcore = { path = "../ethcore", features = ["test-helpers"] }
ethcore-accounts = { path = "../accounts" }
ethcore-io = { path = "../util/io" }
ethcore-network = { path = "../util/network" }
fake-fetch = { path = "../util/fake-fetch" }
kvdb-memorydb = "0.1"
macros = { path = "../util/macros" }
pretty_assertions = "0.1"
transaction-pool = "1.13"
Expand Down
15 changes: 7 additions & 8 deletions rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

//! Parity RPC.
#![warn(missing_docs)]
#![warn(missing_docs, unused_extern_crates)]

#[macro_use]
extern crate futures;
Expand All @@ -32,7 +32,6 @@ extern crate rustc_hex;
extern crate semver;
extern crate serde;
extern crate serde_json;
extern crate tiny_keccak;
extern crate tokio_timer;
extern crate transient_hashmap;

Expand All @@ -48,7 +47,6 @@ extern crate ethcore;
extern crate fastmap;
extern crate parity_bytes as bytes;
extern crate parity_crypto as crypto;
extern crate ethcore_io as io;
extern crate ethcore_light as light;
extern crate ethcore_logger;
extern crate ethcore_miner as miner;
Expand All @@ -63,15 +61,18 @@ extern crate keccak_hash as hash;
extern crate parity_runtime;
extern crate parity_updater as updater;
extern crate parity_version as version;
extern crate trie_db as trie;
extern crate eip_712;
extern crate rlp;
extern crate stats;
extern crate tempdir;
extern crate vm;

#[cfg(any(test, feature = "ethcore-accounts"))]
extern crate ethcore_accounts as accounts;

#[cfg(any(test, feature = "ethcore-accounts"))]
extern crate tiny_keccak;

#[macro_use]
extern crate log;
#[macro_use]
Expand All @@ -90,13 +91,11 @@ extern crate pretty_assertions;
#[macro_use]
extern crate macros;

#[cfg(test)]
extern crate kvdb_memorydb;

#[cfg(test)]
extern crate fake_fetch;

extern crate tempdir;
#[cfg(test)]
extern crate ethcore_io as io;

pub extern crate jsonrpc_ws_server as ws;

Expand Down

0 comments on commit 78a5346

Please sign in to comment.