Skip to content

Commit d108056

Browse files
committed
Auto merge of #280 - Zoxc:inline-static-empty, r=Amanieu
Inline `static_empty` This ended up not being inlined into `reserve_rehash`.
2 parents 4f87bdf + e9957e0 commit d108056

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/raw/generic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ impl Group {
5252
/// value for an empty hash table.
5353
///
5454
/// This is guaranteed to be aligned to the group size.
55+
#[inline]
5556
pub const fn static_empty() -> &'static [u8; Group::WIDTH] {
5657
#[repr(C)]
5758
struct AlignedBytes {

src/raw/sse2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ impl Group {
2828
/// value for an empty hash table.
2929
///
3030
/// This is guaranteed to be aligned to the group size.
31+
#[inline]
3132
#[allow(clippy::items_after_statements)]
3233
pub const fn static_empty() -> &'static [u8; Group::WIDTH] {
3334
#[repr(C)]

0 commit comments

Comments
 (0)