Skip to content

Commit

Permalink
Fix nostd test
Browse files Browse the repository at this point in the history
  • Loading branch information
smessmer committed Feb 6, 2024
1 parent 5bd3411 commit 57030ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fields/primitive/copy_access/primitive_unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ mod tests {
#[allow(clippy::unit_cmp)]
#[test]
fn [<test_unit_ $endian endian>]() {
let mut storage = vec![0; 1024];
let mut storage = [0; 1024];

type Field1 = PrimitiveField<(), $endian_type, 5>;
type Field2 = PrimitiveField<(), $endian_type, 123>;
Expand All @@ -112,7 +112,7 @@ mod tests {

// Zero-sized types do not mutate the storage, so it should remain
// unchanged for all of time.
assert_eq!(storage, vec![0; 1024]);
assert_eq!(storage, [0; 1024]);
}
}
};
Expand Down

0 comments on commit 57030ff

Please sign in to comment.