From 78a66bf6aea402f226d6384853a91b153f621d47 Mon Sep 17 00:00:00 2001 From: dalance Date: Sun, 12 Apr 2020 11:59:37 +0900 Subject: [PATCH] Fix macro --- sv-parser/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv-parser/src/lib.rs b/sv-parser/src/lib.rs index 144ef3e..6ccb3e5 100644 --- a/sv-parser/src/lib.rs +++ b/sv-parser/src/lib.rs @@ -224,7 +224,7 @@ macro_rules! unwrap_node { let unwrap = || { for x in $n { 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 = || { for x in $n { match x { - sv_parser::RefNode::Locate(x) => return Some(x), + $crate::RefNode::Locate(x) => return Some(x), _ => (), } }