Skip to content

Commit dd344f4

Browse files
committed
Update some #[inline] annotations
1 parent cd5a2e2 commit dd344f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/raw/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ impl Iterator for ProbeSeq {
173173
/// taking the maximum load factor into account.
174174
///
175175
/// Returns `None` if an overflow occurs.
176-
#[cfg_attr(feature = "inline-more", inline)]
177176
// Workaround for emscripten bug emscripten-core/emscripten-fastcomp#258
178177
#[cfg_attr(target_os = "emscripten", inline(never))]
178+
#[cfg_attr(not(target_os = "emscripten"), inline)]
179179
fn capacity_to_buckets(cap: usize) -> Option<usize> {
180180
debug_assert_ne!(cap, 0);
181181

@@ -202,7 +202,7 @@ fn capacity_to_buckets(cap: usize) -> Option<usize> {
202202

203203
/// Returns the maximum effective capacity for the given bucket mask, taking
204204
/// the maximum load factor into account.
205-
#[cfg_attr(feature = "inline-more", inline)]
205+
#[inline]
206206
fn bucket_mask_to_capacity(bucket_mask: usize) -> usize {
207207
if bucket_mask < 8 {
208208
// For tables with 1/2/4/8 buckets, we always reserve one empty slot.

0 commit comments

Comments
 (0)