mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 18:47:59 +00:00
use the map! macro instead of defining it all over the place (#867)
* remove one map implementation in test * remove one map macro * remove one map macro * remove one map macro
This commit is contained in:
@@ -32,7 +32,7 @@ extern crate substrate_trie;
|
||||
|
||||
extern crate parking_lot;
|
||||
extern crate heapsize;
|
||||
extern crate substrate_primitives as primitives;
|
||||
#[cfg_attr(test, macro_use)] extern crate substrate_primitives as primitives;
|
||||
extern crate parity_codec as codec;
|
||||
extern crate substrate_trie as trie;
|
||||
|
||||
@@ -522,12 +522,6 @@ mod tests {
|
||||
|
||||
impl Error for u8 {}
|
||||
|
||||
macro_rules! map {
|
||||
($( $name:expr => $value:expr ),*) => (
|
||||
vec![ $( ( $name, $value ) ),* ].into_iter().collect()
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn execute_works() {
|
||||
assert_eq!(execute(
|
||||
|
||||
Reference in New Issue
Block a user