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

Make Surface::as_hal take an immutable reference to the surface. #6500

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

jerzywilczek
Copy link
Contributor

@jerzywilczek jerzywilczek commented Nov 6, 2024

Connections
None

Description
Surface::as_hal right now takes a mutable reference to the surface. I don't understand why, and no documentation I found mentions why, so I propose to change that to take an immutable reference instead.

Testing
Everything still compiles and number of test passes doesn't change.

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
      This fails on my PC
  • Run cargo xtask test to run tests.
    129 tests fail on my PC, with or without the change
  • Add change to CHANGELOG.md. See simple instructions inside file.

@jerzywilczek jerzywilczek requested a review from a team as a code owner November 6, 2024 14:22
@teoxoy
Copy link
Member

teoxoy commented Nov 6, 2024

This is most likely an oversight.

Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@teoxoy teoxoy merged commit 9b47b06 into gfx-rs:trunk Nov 6, 2024
27 checks passed
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