Show More
@@ -35,12 +35,14 b' pub(super) type IgnorePatternsHash = [u8' | |||||
35 | /// `mercurial/dirstateutils/docket.py` |
|
35 | /// `mercurial/dirstateutils/docket.py` | |
36 | const TREE_METADATA_SIZE: usize = 44; |
|
36 | const TREE_METADATA_SIZE: usize = 44; | |
37 |
|
37 | |||
|
38 | const NODE_SIZE: usize = 43; | |||
|
39 | ||||
38 | /// Make sure that size-affecting changes are made knowingly |
|
40 | /// Make sure that size-affecting changes are made knowingly | |
39 | #[allow(unused)] |
|
41 | #[allow(unused)] | |
40 | fn static_assert_size_of() { |
|
42 | fn static_assert_size_of() { | |
41 | let _ = std::mem::transmute::<TreeMetadata, [u8; TREE_METADATA_SIZE]>; |
|
43 | let _ = std::mem::transmute::<TreeMetadata, [u8; TREE_METADATA_SIZE]>; | |
42 | let _ = std::mem::transmute::<DocketHeader, [u8; TREE_METADATA_SIZE + 81]>; |
|
44 | let _ = std::mem::transmute::<DocketHeader, [u8; TREE_METADATA_SIZE + 81]>; | |
43 |
let _ = std::mem::transmute::<Node, [u8; |
|
45 | let _ = std::mem::transmute::<Node, [u8; NODE_SIZE]>; | |
44 | } |
|
46 | } | |
45 |
|
47 | |||
46 | // Must match `HEADER` in `mercurial/dirstateutils/docket.py` |
|
48 | // Must match `HEADER` in `mercurial/dirstateutils/docket.py` |
General Comments 0
You need to be logged in to leave comments.
Login now