In glam-rs/src/u64/u64vec2.rs, the comment indicates that slice must be greater or equal than 2 elements long, while the code doesn't use assert! to check it. There are many similar problems in other functions.
/// # Panics
///
/// Panics if `slice` is less than 2 elements long.
#[inline]
#[must_use]
pub const fn from_slice(slice: &[u64]) -> Self {
Self::new(slice[0], slice[1])
}
In glam-rs/src/u64/u64vec2.rs, the comment indicates that slice must be greater or equal than 2 elements long, while the code doesn't use assert! to check it. There are many similar problems in other functions.