diff --git a/src/lib.rs b/src/lib.rs index 6ae9a73..3d990d3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -282,12 +282,7 @@ impl<'a> PartialEq 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)),*]) }}; }