Skip to content

Make RawHandleWrapper fields private to save users from themselves#16968

Merged
alice-i-cecile merged 1 commit intobevyengine:mainfrom
Brezak:hide-raw-handle-wrapper
Dec 29, 2024
Merged

Make RawHandleWrapper fields private to save users from themselves#16968
alice-i-cecile merged 1 commit intobevyengine:mainfrom
Brezak:hide-raw-handle-wrapper

Conversation

@Brezak
Copy link
Contributor

@Brezak Brezak commented Dec 25, 2024

Objective

Fixes #16683

Solution

Make all fields ine RawHandleWrapper private.

Testing

  • CI
  • cargo clippy
  • The lightmaps example

Migration Guide

The window_handle and dispay_handle fields on RawHandleWrapper are no longer public. Use the newly added getters and setters to manipulate them instead.

@Brezak Brezak marked this pull request as ready for review December 25, 2024 16:49
@mnmaita mnmaita added A-Windowing Platform-agnostic interface layer to run your app in C-Usability A targeted quality-of-life change that makes Bevy easier to use D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Dec 26, 2024
@alice-i-cecile
Copy link
Member

Simple docs issue then this LGTM. @spectria-limina, does this line up with what you were hoping for?

@alice-i-cecile alice-i-cecile added the P-Unsound A bug that results in undefined compiler behavior label Dec 29, 2024
@spectria-limina
Copy link
Contributor

Yes, LGTM after a cursory look. Thanks!

@Brezak Brezak force-pushed the hide-raw-handle-wrapper branch from 8a2b283 to 7f4c6ec Compare December 29, 2024 19:40
@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Dec 29, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Dec 29, 2024
Merged via the queue into bevyengine:main with commit dc2cd71 Dec 29, 2024
@Brezak Brezak deleted the hide-raw-handle-wrapper branch December 29, 2024 20:27
ecoskey pushed a commit to ecoskey/bevy that referenced this pull request Jan 6, 2025
…evyengine#16968)

# Objective

Fixes bevyengine#16683

## Solution

Make all fields ine `RawHandleWrapper` private.

## Testing

- CI
- `cargo clippy`
- The lightmaps example
---

## Migration Guide

The `window_handle` and `dispay_handle` fields on `RawHandleWrapper` are
no longer public. Use the newly added getters and setters to manipulate
them instead.
mrchantey pushed a commit to mrchantey/bevy that referenced this pull request Feb 4, 2025
…evyengine#16968)

# Objective

Fixes bevyengine#16683

## Solution

Make all fields ine `RawHandleWrapper` private.

## Testing

- CI
- `cargo clippy`
- The lightmaps example
---

## Migration Guide

The `window_handle` and `dispay_handle` fields on `RawHandleWrapper` are
no longer public. Use the newly added getters and setters to manipulate
them instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Windowing Platform-agnostic interface layer to run your app in C-Usability A targeted quality-of-life change that makes Bevy easier to use D-Straightforward Simple bug fixes and API improvements, docs, test and examples M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide P-Unsound A bug that results in undefined compiler behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create_surfaces is unsound

4 participants