Skip to content

Conversation

@Breakdown-Dog
Copy link
Contributor

Objective

  • The functions logical_viewport_size and physical_viewport_size in camera.rs share a very similar pattern.
  • Refactor code to reduce duplication.

Solution

  • extract to a shared function.

Testing

  • Ran cargo test and all the tests pass.

@mnmaita mnmaita added C-Code-Quality A section of code that is hard to understand or change S-Needs-Review Needs reviewer attention (from anyone!) to move forward D-Straightforward Simple bug fixes and API improvements, docs, test and examples A-Camera User-facing camera APIs and controllers. labels Nov 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Camera User-facing camera APIs and controllers. C-Code-Quality A section of code that is hard to understand or change D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants