Get rid of rustc_hex in favor of hex (#5370)

* Get rid of rustc_hex in favor of hex

* Use HexDisplay
This commit is contained in:
Stanislav Tkach authored and GitHub committed 2020-03-24 11:48:23 +01:00
1 parent 5345407783
commit 4414d00082
10 files changed
+34 -41

No files matched your search

+2 -2
View File
@@ -648,7 +648,7 @@ fn read_pair<C: Crypto>(
}
fn format_signature<C: Crypto>(signature: &SignatureOf<C>) -> String {
format!("{}", hex::encode(signature))
format!("{}", HexDisplay::from(&signature.as_ref()))
}
fn format_seed<C: Crypto>(seed: SeedOf<C>) -> String {
@@ -711,7 +711,7 @@ fn create_extrinsic<C: Crypto>(
}
fn print_extrinsic(extrinsic: UncheckedExtrinsic) {
println!("0x{}", hex::encode(&extrinsic.encode()));
println!("0x{}", HexDisplay::from(&extrinsic.encode()));
}
fn print_usage(matches: &ArgMatches) {