[dependencies]: unify rustc-hex (#11506)

* [dependency]: unify `rustc-hex`

* [private tx]: fix upgrade to `rustc hex 2.1.0`
This commit is contained in:
Niklas Adolfsson
2020-02-21 15:10:00 +01:00
committed by GitHub
parent bec867be03
commit 2018f5b0ab
52 changed files with 355 additions and 357 deletions

View File

@@ -73,9 +73,9 @@ impl fmt::Display for Fail {
write!(
f,
"Expected to return result: 0x{} ({} bytes), but got 0x{} ({} bytes)",
expected.to_hex(),
expected.to_hex::<String>(),
expected.len(),
actual.to_hex(),
actual.to_hex::<String>(),
actual.len()
),
@@ -95,17 +95,17 @@ impl fmt::Display for Fail {
write!(
f,
"Storage key {} value mismatch, expected {}, got: {}",
key.as_bytes().to_vec().to_hex(),
expected.as_bytes().to_vec().to_hex(),
actual.as_bytes().to_vec().to_hex(),
key.as_bytes().to_hex::<String>(),
expected.as_bytes().to_hex::<String>(),
actual.as_bytes().to_hex::<String>(),
),
StorageMismatch { ref key, ref expected, actual: None} =>
write!(
f,
"No expected storage value for key {} found, expected {}",
key.as_bytes().to_vec().to_hex(),
expected.as_bytes().to_vec().to_hex(),
key.as_bytes().to_hex::<String>(),
expected.as_bytes().to_hex::<String>(),
),
Nonconformity(SpecNonconformity::Address) =>