Fix everything.

This commit is contained in:
Gav
2018-02-07 17:07:55 +01:00
parent ef059b81f1
commit d494d4b89b
9 changed files with 6 additions and 9 deletions
@@ -25,9 +25,6 @@ extern crate substrate_runtime_io as runtime_io;
#[cfg(feature = "std")]
extern crate rustc_hex;
#[cfg(feature = "with-std")]
#[macro_use]
extern crate log;
extern crate substrate_codec as codec;
extern crate substrate_primitives;
@@ -202,15 +202,15 @@ fn post_finalise(header: &Header) {
storage::put(&header.number.to_keyed_vec(BLOCK_HASH_AT), &header.blake2_256());
}
#[cfg(feature = "with-std")]
#[cfg(feature = "std")]
fn info_expect_equal_hash(given: &Hash, expected: &Hash) {
use support::HexDisplay;
if given != expected {
info!("Hash: given={}, expected={}", HexDisplay::from(given), HexDisplay::from(expected));
println!("Hash: given={}, expected={}", HexDisplay::from(&given.0), HexDisplay::from(&expected.0));
}
}
#[cfg(not(feature = "with-std"))]
#[cfg(not(feature = "std"))]
fn info_expect_equal_hash(_given: &Hash, _expected: &Hash) {}
#[cfg(test)]