Skip to content

fix(clippy): remove unnecessary type casts#3

Merged
duyphan0503 merged 1 commit intomainfrom
fix/clippy-unnecessary-casts
Jan 26, 2026
Merged

fix(clippy): remove unnecessary type casts#3
duyphan0503 merged 1 commit intomainfrom
fix/clippy-unnecessary-casts

Conversation

@duyphan0503
Copy link
Owner

Removes redundant as i32 casts in roughness_map.rs that were triggering Clippy warnings.

Copilot AI review requested due to automatic review settings January 26, 2026 19:48
@duyphan0503 duyphan0503 merged commit d7ffccc into main Jan 26, 2026
5 checks passed
@duyphan0503 duyphan0503 deleted the fix/clippy-unnecessary-casts branch January 26, 2026 19:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses Clippy warnings by removing redundant type casts in the roughness map generation code. The window_size variable (set to 3 on line 68) is already inferred as i32 by Rust's type system, making the explicit as i32 casts unnecessary.

Changes:

  • Removed unnecessary as i32 casts from loop range bounds in the compute_texture_variance function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

1 participant

Comments