Update hex-literal version, simplify imports and remove unused dependencies (#2371)

This commit is contained in:
Stanislav Tkach
2019-04-25 12:17:40 +03:00
committed by Gavin Wood
parent d6054a8fd8
commit 0f02bed702
46 changed files with 54 additions and 85 deletions
+3 -1
View File
@@ -6,7 +6,6 @@ description = "Substrate State Machine"
edition = "2018"
[dependencies]
hex-literal = "0.1.0"
log = "0.4"
parking_lot = "0.7.1"
heapsize = "0.4"
@@ -17,3 +16,6 @@ trie = { package = "substrate-trie", path = "../trie" }
primitives = { package = "substrate-primitives", path = "../primitives" }
panic-handler = { package = "substrate-panic-handler", path = "../panic-handler" }
parity-codec = "3.3"
[dev-dependencies]
hex-literal = "0.2.0"
+1 -1
View File
@@ -166,7 +166,7 @@ impl<H: Hasher> Externalities<H> for BasicExternalities where H::Out: Ord + Heap
mod tests {
use super::*;
use primitives::{Blake2Hasher, H256};
use hex_literal::{hex, hex_impl};
use hex_literal::hex;
#[test]
fn commit_should_work() {
+1 -1
View File
@@ -360,7 +360,7 @@ where
#[cfg(test)]
mod tests {
use hex_literal::{hex, hex_impl};
use hex_literal::hex;
use parity_codec::Encode;
use primitives::{Blake2Hasher};
use primitives::storage::well_known_keys::EXTRINSIC_INDEX;
@@ -309,7 +309,7 @@ impl From<Option<Vec<u8>>> for OverlayedValue {
#[cfg(test)]
mod tests {
use hex_literal::{hex, hex_impl};
use hex_literal::hex;
use primitives::{Blake2Hasher, H256};
use primitives::storage::well_known_keys::EXTRINSIC_INDEX;
use crate::backend::InMemory;
+1 -1
View File
@@ -180,7 +180,7 @@ impl<H: Hasher> Externalities<H> for TestExternalities<H> where H::Out: Ord + He
mod tests {
use super::*;
use primitives::{Blake2Hasher, H256};
use hex_literal::{hex, hex_impl};
use hex_literal::hex;
#[test]
fn commit_should_work() {