summaryrefslogtreecommitdiffstats
path: root/src/hilbert.rs
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-05-11 11:33:45 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-05-11 11:33:45 -0400
commitadaafdd7043507cbceae65e78c38954e47103b5c (patch)
treec8e2b62b2f39e0f2dc7908ca613df92dd7b541c1 /src/hilbert.rs
parent825515439247853af3714d3135051a83bd84d2e0 (diff)
downloadkd-forest-adaafdd7043507cbceae65e78c38954e47103b5c.tar.xz
Fix some clippy lints
Diffstat (limited to 'src/hilbert.rs')
-rw-r--r--src/hilbert.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hilbert.rs b/src/hilbert.rs
index c0982d4..36464dc 100644
--- a/src/hilbert.rs
+++ b/src/hilbert.rs
@@ -130,7 +130,7 @@ pub fn hilbert_point(index: usize, bits: &[u32], point: &mut [usize]) {
l >>= 1;
}
- e = e ^ rotate_right(entry_point(w), d, dims);
+ e ^= rotate_right(entry_point(w), d, dims);
d = (d + intra_direction(w) + 1) % dims;
}
}