Skip to content

Commit

Permalink
fix test failure
Browse files Browse the repository at this point in the history
removed wrong assertation code
  • Loading branch information
iwa0 authored May 22, 2020
1 parent 5a59dd3 commit b500a0a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,6 @@ fn calculate_layout<T>(buckets: usize) -> Option<(Layout, usize)> {
// Group::WIDTH is a small number.
let ctrl = unsafe { Layout::from_size_align_unchecked(buckets + Group::WIDTH, Group::WIDTH) };

// There must be no padding between two tables.
debug_assert_eq!(data.padding_needed_for(Group::WIDTH), 0);

data.extend(ctrl).ok()
}

Expand Down

0 comments on commit b500a0a

Please sign in to comment.