Comment fixes, header update

This commit is contained in:
Dzmitry Malyshau
2020-04-13 18:48:08 -04:00
parent 9c49a8c3d5
commit be49ffae9c
3 changed files with 5 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Generated with cbindgen:0.14.0 */
/* Generated with cbindgen:0.14.1 */
/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
* To generate this file:

View File

@@ -24,6 +24,9 @@ pub struct Id<T>(NonZeroU64, PhantomData<T>);
impl<T> Default for Id<T> {
fn default() -> Self {
Id(
// Create an ID that doesn't make sense:
// the high `BACKEND_BITS` are to be set to 0, which matches `Backend::Empty`,
// the other bits are all 1s
unsafe { NonZeroU64::new_unchecked(!0 >> BACKEND_BITS) },
PhantomData,
)

View File

@@ -300,7 +300,7 @@ mod test {
assert_eq!(
ts1.merge(id, &ts2, None),
Ok(()),
"failed to merge with an emtpy"
"failed to merge with an empty"
);
ts2.mips.push(PlaneStates::from_slice(&[(