Fixed a bunch of warnings (#1740)

This commit is contained in:
Arkadiy Paronyan
2019-02-08 14:55:15 +01:00
committed by Gav Wood
parent 7b0f82b4f0
commit 091e222d99
8 changed files with 6 additions and 6 deletions
+2
View File
@@ -21,6 +21,8 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc))]
/// Initalise a key-value collection from array.
///
/// Creates a vector of given pairs and calls `collect` on the iterator from it.
/// Can be used to create a `HashMap`.
#[macro_export]
+3
View File
@@ -62,6 +62,8 @@ pub type RuntimeString = &'static str;
macro_rules! create_runtime_str {
( $y:expr ) => {{ ::std::borrow::Cow::Borrowed($y) }}
}
/// Create a const [RuntimeString].
#[cfg(not(feature = "std"))]
#[macro_export]
macro_rules! create_runtime_str {
@@ -319,6 +321,7 @@ pub fn verify_encoded_lazy<V: Verify, T: codec::Encode>(sig: &V, item: &T, signe
)
}
/// Helper macro for `impl_outer_config`
#[macro_export]
macro_rules! __impl_outer_config_types {
(