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 {
(
+1 -1
View File
@@ -26,7 +26,7 @@ extern crate serde;
extern crate hex_literal;
extern crate parity_codec as codec;
#[macro_use] extern crate parity_codec_derive;
extern crate parity_codec_derive;
extern crate substrate_primitives;
extern crate sr_std as rstd;
extern crate sr_io as runtime_io;
-1
View File
@@ -36,7 +36,6 @@ extern crate substrate_primitives;
extern crate sr_primitives;
// Needed for deriving `Encode` and `Decode` for `RawEvent`.
#[macro_use]
extern crate parity_codec_derive;
extern crate parity_codec as codec;
-1
View File
@@ -19,7 +19,6 @@
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(test)]
#[macro_use]
extern crate parity_codec_derive;
#[cfg_attr(test, macro_use)]
-1
View File
@@ -24,7 +24,6 @@ extern crate sr_std as rstd;
#[macro_use]
extern crate srml_support as runtime_support;
#[macro_use]
extern crate parity_codec_derive;
#[cfg(test)]
-1
View File
@@ -25,7 +25,6 @@ extern crate sr_io;
#[cfg(test)]
extern crate substrate_primitives;
extern crate sr_primitives;
#[macro_use]
extern crate parity_codec_derive;
extern crate parity_codec as codec;
#[macro_use]
-1
View File
@@ -25,7 +25,6 @@ extern crate sr_io;
#[cfg(test)]
extern crate substrate_primitives;
extern crate sr_primitives;
#[macro_use]
extern crate parity_codec_derive;
extern crate parity_codec as codec;
#[macro_use]