Skip to content

Commit

Permalink
Lint: Add recommended parentheses.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Dec 27, 2024
1 parent 5fd8749 commit 26f482d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions all-is-cubes-base/src/math/octant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ impl Octant {
/// Ties due to zero components are broken in the positive direction.
#[inline]
pub fn from_vector(vector: FreeVector) -> Self {
let index = u8::from(vector.x >= 0.) << 2
| u8::from(vector.y >= 0.) << 1
let index = (u8::from(vector.x >= 0.) << 2)
| (u8::from(vector.y >= 0.) << 1)
| u8::from(vector.z >= 0.);
Self::from_zmaj_index(index)
}
Expand Down

0 comments on commit 26f482d

Please sign in to comment.