Use vec! in oid! macro #30

Merged
tsoutsman merged 1 commits from master into master 2022-01-03 14:57:56 -08:00
tsoutsman commented 2022-01-03 03:16:39 -08:00 (Migrated from github.com)

Hi,
This pull request changes the oid! macro to use the vec! macro rather than manually creating a vector and then pushing elements onto it one-by-one. The vec! macro creates a vector that is already of the correct size avoiding unnecessary reallocations.

Hi, This pull request changes the `oid!` macro to use the `vec!` macro rather than manually creating a vector and then pushing elements onto it one-by-one. The `vec!` macro creates a vector that is already of the correct size avoiding unnecessary reallocations.
acw commented 2022-01-03 14:57:51 -08:00 (Migrated from github.com)

Looks great, thanks!

Looks great, thanks!
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: acw/simple_asn1#30