Remove useless assert! case
This commit is contained in:
parent
b0b7c252d7
commit
ca84d79375
@ -90,11 +90,6 @@ macro_rules! assert(
|
|||||||
fail!("assertion failed: {:s}", stringify!($cond))
|
fail!("assertion failed: {:s}", stringify!($cond))
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
($cond:expr, $msg:expr) => (
|
|
||||||
if !$cond {
|
|
||||||
fail!($msg)
|
|
||||||
}
|
|
||||||
);
|
|
||||||
($cond:expr, $($arg:expr),+) => (
|
($cond:expr, $($arg:expr),+) => (
|
||||||
if !$cond {
|
if !$cond {
|
||||||
fail!($($arg),+)
|
fail!($($arg),+)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user