Skip to content

Commit 8d4d1b9

Browse files
committed
feat: optimize struct paddings
1 parent c6e351a commit 8d4d1b9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,16 @@ enum Color {
5353

5454
#[derive(Debug)]
5555
struct Node<K, V> {
56-
key: K,
57-
value: V,
58-
color: Color,
5956
parent: usize,
6057
left: usize,
6158
right: usize,
59+
6260
#[cfg(feature = "expanded")]
63-
size: usize
61+
size: usize,
62+
63+
key: K,
64+
value: V,
65+
color: Color,
6466
}
6567

6668
/// An iterator over the entries of a `RedBlackTree`.

0 commit comments

Comments
 (0)