From fcba9cb4beaa00a1a4e632025df081f5a7785a3a Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Tue, 22 Jun 2021 12:14:39 -0400 Subject: [PATCH] Add $crate:: metavariable to the oid! macro This allows using the oid macro without having to import BigUint --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1c56e09..6f7d278 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -286,9 +286,9 @@ macro_rules! oid { let mut res = Vec::new(); $( - res.push(BigUint::from($e as u64)); + res.push($crate::BigUint::from($e as u64)); )* - OID::new(res) + $crate::OID::new(res) }}; }