-
Couldn't load subscription status.
- Fork 32
feat: add expand_rows and expand_cols #64
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One improvement remark regarding readability and making it a bit simpler and please have a look for the formatting. Run the formatter again before commiting.
Otherwise looks good to me. Thanks for the contribution
|
Thanks for the review, I have applied the suggestion and formatted the code properly, the issue with the formatter was some space or tab, unexpected by me. |
|
Thanks for the chwnges. Clippy check is still Brocken. Can you please Check the failing Pipeline? |
|
Now its adjusted, sorry about that. |
|
I am seeing that now there are two steps failing, this looks very strange, i gonna try to reproduce them local |
|
About the formatting step, there is two things that looks strange. About the test step, there is also something strange, miri test its failing with this message: I am very curious about why those two actions are failing so I will see if i can find some responses. |
|
The Miri failure its related to some issue on a new nightly release, as mentioned here: rust-lang/miri#4323 |
|
About the formatting failure: About the test failure: |
|
Sorry for the flaky and failing pipelines. The code looks just fine. Will try to fix those issues later. Thanks for the contribution. |
Hi, I added methods to allow the grid to be expanded by x rows or x cols without the need do a lot of push_rows or push_cols. I don't know if it is a problem, but as I needed to initialize some data to those new rows or cols, i implemented this only for type T that haves the trait Default.
I believe that the benefits of this methods are to make it easier to someone using the lib to expand the grid and also to allow the grid to be expanded with less reallocations of it internal data Vec.
This is my very first contribution to an open source project so if there anything that should be improved, please, feel free to say.