-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Added Vec append to BufferVec - Issue #3531 #8575
Added Vec append to BufferVec - Issue #3531 #8575
Conversation
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
I would like to see a couple of simple tests for this: seems like useful functionality both internally and externally but I agree that dead code is rough. |
Are there any other vector functions that should get added with this PR? |
Thanks @mockersf for pointing out that I needed to make the function public. This also resolved the dead code warnings, although I don't know why it doesn't detect this as dead code anymore. The tests I wrote (and momentarily pushed to this branch)
So I think just the implementation sans tests probably makes the most sense and is in line with the rest of BufferVec not being tested directly |
Because it's now part of the exposed public API, so it can be used by caller of the lib |
Objective
Solution
First PR to Bevy. I didn't see any tests for other BufferVec methods (could have missed them) and currently this method is not used anywhere in the project. Let me know if there are tests to add or if I should find somewhere to use append so it is not dead code. The issue mentions implementing
truncate
andextend
which were already implemented and merged here