From 1bd49d76b63cae005232d447a90c2085b9546533 Mon Sep 17 00:00:00 2001 From: Mingzhuo Yin Date: Wed, 21 Feb 2024 01:14:45 +0800 Subject: [PATCH] cargo fmt Signed-off-by: Mingzhuo Yin --- crates/service/src/prelude/global/binary.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/service/src/prelude/global/binary.rs b/crates/service/src/prelude/global/binary.rs index ccb2fda..ea83999 100644 --- a/crates/service/src/prelude/global/binary.rs +++ b/crates/service/src/prelude/global/binary.rs @@ -33,7 +33,8 @@ pub fn cosine<'a>(lhs: BinaryVecRef<'a>, rhs: BinaryVecRef<'a>) -> F32 { #[cfg(target_arch = "x86_64")] if detect::x86_64::detect_avx512vpopcntdq() { unsafe { - return c::v_binary_cosine_avx512vpopcntdq(lhs.as_ptr(), rhs.as_ptr(), lhs.len()).into(); + return c::v_binary_cosine_avx512vpopcntdq(lhs.as_ptr(), rhs.as_ptr(), lhs.len()) + .into(); } } #[cfg(target_arch = "x86_64")]