Skip to content

Commit 3c0f3ca

Browse files
committed
Apply inlining
1 parent d388a13 commit 3c0f3ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/src/hash.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ pub fn hash_float(value: f64) -> Option<PyHash> {
140140
Some(fix_sentinel(x as PyHash * value.signum() as PyHash))
141141
}
142142

143+
#[inline]
143144
pub fn hash_complex(value: &Complex64) -> Option<PyHash> {
144145
let re_hash = hash_float(value.re)?;
145146
let im_hash = hash_float(value.im)?;

0 commit comments

Comments
 (0)