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
+1 -3
View File
@@ -18,7 +18,6 @@ hash-db = { version = "0.12", default-features = false }
hash256-std-hasher = { version = "0.12", default-features = false }
ring = { version = "0.14", optional = true }
untrusted = { version = "0.6", optional = true }
hex-literal = { version = "0.1", optional = true }
base58 = { version = "0.1", optional = true }
blake2-rfc = { version = "0.2.18", optional = true }
schnorrkel = { version = "0.1", optional = true }
@@ -33,7 +32,7 @@ regex = {version = "1.1", optional = true }
substrate-serializer = { path = "../serializer" }
pretty_assertions = "0.6"
heapsize = "0.4"
hex-literal = "0.1"
hex-literal = "0.2"
rand = "0.6"
[features]
@@ -57,7 +56,6 @@ std = [
"blake2-rfc",
"ring",
"untrusted",
"hex-literal",
"hex",
"base58",
"substrate-bip39",
+1 -2
View File
@@ -16,10 +16,9 @@
#![feature(test)]
extern crate test;
use hex_literal::{hex, hex_impl};
use hex_literal::hex;
use substrate_primitives::hashing::{twox_128, blake2_128};
const MAX_KEY_SIZE: u32 = 32;
fn data_set() -> Vec<Vec<u8>> {
+1 -1
View File
@@ -410,7 +410,7 @@ pub trait Pair: Sized {
#[cfg(test)]
mod tests {
use crate::DeriveJunction;
use hex_literal::{hex, hex_impl};
use hex_literal::hex;
use super::*;
#[derive(Eq, PartialEq, Debug)]
+1 -1
View File
@@ -490,7 +490,7 @@ impl Pair {
#[cfg(test)]
mod test {
use super::*;
use hex_literal::{hex, hex_impl};
use hex_literal::hex;
use crate::crypto::DEV_PHRASE;
#[test]
+1 -1
View File
@@ -504,7 +504,7 @@ impl Pair {
mod test {
use super::*;
use crate::crypto::{Ss58Codec, DEV_PHRASE, DEV_ADDRESS};
use hex_literal::{hex, hex_impl};
use hex_literal::hex;
#[test]
fn default_phrase_should_be_used() {