Skip to content

Conversation

@patowen
Copy link
Collaborator

@patowen patowen commented Jun 30, 2025

warning: this multiplication by -1 can be written more succinctly
   --> common\src\plane.rs:144:13
    |
144 |             root.distance_to_chunk(Vertex::J, &na::Vector3::new(-1.0, 1.0, 1.0)) * -1.0,
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `-root.distance_to_chunk(Vertex::J, &na::Vector3::new(-1.0, 1.0, 1.0))`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#neg_multiply
    = note: `#[warn(clippy::neg_multiply)]` on by default

@Ralith Ralith merged commit f38bc43 into Ralith:master Jul 1, 2025
4 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