Skip to content

Commit

Permalink
adjust test expectations to work with latest Rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Feb 8, 2024
1 parent 13d5602 commit 53e9b4e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions gix-config/src/parse/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ mod section {
fn size_of_events() {
assert_eq!(
std::mem::size_of::<Section<'_>>(),
112,
96,
"this value should only ever decrease"
);
assert_eq!(std::mem::size_of::<Events<'_>>(), 744,);
assert_eq!(std::mem::size_of::<Event<'_>>(), 88,);
assert_eq!(std::mem::size_of::<Header<'_>>(), 88,);
assert_eq!(std::mem::size_of::<Comment<'_>>(), 32,);
assert_eq!(std::mem::size_of::<Option<Cow<'_, BStr>>>(), 32,);
assert_eq!(std::mem::size_of::<section::Name<'_>>(), 24,);
assert_eq!(std::mem::size_of::<section::Key<'_>>(), 24,);
assert_eq!(std::mem::size_of::<Events<'_>>(), 616);
assert_eq!(std::mem::size_of::<Event<'_>>(), 72);
assert_eq!(std::mem::size_of::<Header<'_>>(), 72);
assert_eq!(std::mem::size_of::<Comment<'_>>(), 32);
assert_eq!(std::mem::size_of::<Option<Cow<'_, BStr>>>(), 24);
assert_eq!(std::mem::size_of::<section::Name<'_>>(), 24);
assert_eq!(std::mem::size_of::<section::Key<'_>>(), 24);
}

mod header {
Expand Down

0 comments on commit 53e9b4e

Please sign in to comment.