fix full_crypto (#4133)

* hopefully fixing api-client with this

* another use statement needed

* using full path for Vec

* next try

* yet again

* cleanup
This commit is contained in:
brenzi
2019-11-19 09:33:56 +01:00
committed by Bastian Köcher
parent 566328cd3e
commit 10925510de
2 changed files with 3 additions and 3 deletions
@@ -141,7 +141,7 @@ macro_rules! app_crypto_pair {
<$pair>::verify_weak(sig, message, pubkey)
}
fn public(&self) -> Self::Public { Public(self.0.public()) }
fn to_raw_vec(&self) -> Vec<u8> { self.0.to_raw_vec() }
fn to_raw_vec(&self) -> $crate::Vec<u8> { self.0.to_raw_vec() }
}
impl $crate::AppKey for Pair {
@@ -41,9 +41,9 @@ pub trait AppKey: 'static + Send + Sync + Sized + CryptoType + Clone {
}
/// Type which implements Hash in std, not when no-std (std variant).
#[cfg(feature = "std")]
#[cfg(any(feature = "std", feature = "full_crypto"))]
pub trait MaybeHash: rstd::hash::Hash {}
#[cfg(feature = "std")]
#[cfg(any(feature = "std", feature = "full_crypto"))]
impl<T: rstd::hash::Hash> MaybeHash for T {}
/// Type which implements Hash in std, not when no-std (no-std variant).