Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use vec! in oid! macro #30

Merged
merged 1 commit into from
Jan 3, 2022
Merged

Use vec! in oid! macro #30

merged 1 commit into from
Jan 3, 2022

Conversation

tsoutsman
Copy link
Contributor

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.

Signed-off-by: Klim Tsoutsman <klimusha@gmail.com>
@acw
Copy link
Owner

acw commented Jan 3, 2022

Looks great, thanks!

@acw acw merged commit e1d5d27 into acw:master Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants