Use vec! in oid! macro
#30
@@ -282,12 +282,7 @@ impl<'a> PartialEq<OID> for &'a OID {
|
||||
#[macro_export]
|
||||
macro_rules! oid {
|
||||
( $( $e: expr ),* ) => {{
|
||||
let mut res = Vec::new();
|
||||
|
||||
$(
|
||||
res.push($crate::BigUint::from($e as u64));
|
||||
)*
|
||||
$crate::OID::new(res)
|
||||
$crate::OID::new(vec![$($crate::BigUint::from($e as u64)),*])
|
||||
}};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user