Skip to content

Commit d7a8896

Browse files
author
Kyle Clemens
authored
fix: handle new Result
1 parent dd3423f commit d7a8896

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/raw/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ fn calculate_layout<T>(buckets: usize) -> Option<(Layout, usize)> {
153153
// perform bounds-checking while probing.
154154
let ctrl = Layout::array::<u8>(buckets + Group::WIDTH)
155155
.ok()?
156-
.align_to(Group::WIDTH);
156+
.align_to(Group::WIDTH)
157+
.ok()?;
157158

158159
ctrl.extend(data).ok()
159160
}

0 commit comments

Comments
 (0)