chore: update rust toolchain to 1.98.1 (#9429)

This commit is contained in:
Ning Sun
2026-10-08 09:00:10 +00:00
committed by GitHub
parent 526dd48bda
commit 7f0f592b6b
39 changed files with 92 additions and 103 deletions
@@ -53,8 +53,10 @@ pub fn binlit_as_veclit(bytes: &[u8]) -> Result<Cow<'_, [f32]>> {
})
} else {
let v = bytes
.chunks_exact(std::mem::size_of::<f32>())
.map(|chunk| f32::from_le_bytes(chunk.try_into().unwrap()))
.as_chunks::<{ std::mem::size_of::<f32>() }>()
.0
.iter()
.map(|chunk| f32::from_le_bytes(*chunk))
.collect::<Vec<f32>>();
Ok(Cow::Owned(v))
}