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

Fix RenderResources index slicing #948

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

joshuajbouw
Copy link
Member

This is a small patch fix. Since RenderResources is typically implemented through the proc macro, internally should be hygienic enough to not cause unexpected panics. This patch fixes for example clippy::indexing_slicing which is a some-what common clippy check.

Going through a few of the clippy lints in bevy_tilemap and fixing whats up as suggested, this was one of them. Obviously I can't fix it without fixing it on bevy first or implementing RenderResources by hand.

@joshuajbouw joshuajbouw force-pushed the render-resources-index branch 2 times, most recently from 343356a to 77f0165 Compare November 29, 2020 05:24
@Moxinilian Moxinilian added C-Code-Quality A section of code that is hard to understand or change A-Rendering Drawing game state to the screen labels Nov 29, 2020
@cart
Copy link
Member

cart commented Nov 30, 2020

Makes sense to me!

@cart cart merged commit c7b9ad5 into bevyengine:master Nov 30, 2020
@joshuajbouw joshuajbouw deleted the render-resources-index branch December 4, 2020 11:01
@fopsdev fopsdev mentioned this pull request Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Code-Quality A section of code that is hard to understand or change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants