Add some trivial improvements to primitives runtime (#8528)

* Add some trivial improvements

* Finish primitives/runtime
This commit is contained in:
Liu-Cheng Xu authored and GitHub committed 2021-04-05 20:20:36 +02:00
1 parent b16bc0552e
commit 00432a5ab7
10 files changed
+96 -110

No files matched your search

+1 -2
View File
@@ -19,7 +19,6 @@
use sp_std::prelude::*;
use sp_std::{self, marker::PhantomData, convert::{TryFrom, TryInto}, fmt::Debug};
use sp_io;
#[cfg(feature = "std")]
use std::fmt::Display;
#[cfg(feature = "std")]
@@ -111,7 +110,7 @@ impl Verify for sp_core::ecdsa::Signature {
self.as_ref(),
&sp_io::hashing::blake2_256(msg.get()),
) {
Ok(pubkey) => &signer.as_ref()[..] == &pubkey[..],
Ok(pubkey) => signer.as_ref() == &pubkey[..],
_ => false,
}
}