Fix macro

This commit is contained in:
dalance 2020-04-12 11:59:37 +09:00
parent 9964f2b9b6
commit 78a66bf6ae

View File

@ -224,7 +224,7 @@ macro_rules! unwrap_node {
let unwrap = || { let unwrap = || {
for x in $n { for x in $n {
match x { match x {
$(sv_parser::RefNode::$ty(x) => return Some(sv_parser::RefNode::$ty(x)),)* $($crate::RefNode::$ty(x) => return Some($crate::RefNode::$ty(x)),)*
_ => (), _ => (),
} }
} }
@ -240,7 +240,7 @@ macro_rules! unwrap_locate {
let unwrap = || { let unwrap = || {
for x in $n { for x in $n {
match x { match x {
sv_parser::RefNode::Locate(x) => return Some(x), $crate::RefNode::Locate(x) => return Some(x),
_ => (), _ => (),
} }
} }