Migrate smrl-treasury and srml-upgrade-key to the 2018 edition (#1725)

This commit is contained in:
Stanislav Tkach
2019-02-09 19:06:20 +02:00
committed by Gav Wood
parent 810c391de2
commit ca69ad4c30
37 changed files with 88 additions and 149 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ macro_rules! fail {
macro_rules! ensure {
( $x:expr, $y:expr ) => {{
if !$x {
fail!($y);
$crate::fail!($y);
}
}}
}
@@ -84,7 +84,7 @@ macro_rules! ensure {
macro_rules! assert_noop {
( $x:expr , $y:expr ) => {
let h = runtime_io::storage_root();
assert_err!($x, $y);
$crate::assert_err!($x, $y);
assert_eq!(h, runtime_io::storage_root());
}
}