Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Enet4 committed Apr 28, 2023
1 parent d234f1c commit 9a7e31b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/// L2-renormalize a set of vector. Nothing done if the vector is 0-normed
pub fn fvec_renorm_l2(d: usize, nx:usize, fvec: &mut[f32]) {
unsafe {
faiss_sys::faiss_fvec_renorm_L2(d, nx, fvec.as_mut_ptr())
}
pub fn fvec_renorm_l2(d: usize, nx: usize, fvec: &mut [f32]) {
unsafe { faiss_sys::faiss_fvec_renorm_L2(d, nx, fvec.as_mut_ptr()) }
}

#[cfg(test)]
Expand All @@ -22,4 +20,4 @@ mod tests {

fvec_renorm_l2(D as usize, 5, &mut some_data);
}
}
}

0 comments on commit 9a7e31b

Please sign in to comment.