Add $crate:: metavariable to the oid! macro

This allows using the oid macro without having to import BigUint
This commit is contained in:
Jack Lloyd
2021-06-22 12:14:39 -04:00
parent 1568c1bbf9
commit fcba9cb4be

View File

@@ -286,9 +286,9 @@ macro_rules! oid {
let mut res = Vec::new(); 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)
}}; }};
} }