@@ -231,25 +231,25 @@ mod dimension;
231231
232232/// Portable SIMD types — `crate::simd::f32x16` today, `std::simd::f32x16` tomorrow.
233233#[ cfg( feature = "std" ) ]
234- #[ allow( missing_docs) ]
234+ #[ allow( clippy :: all , missing_docs, dead_code , unused_variables , unused_imports ) ]
235235pub mod simd;
236236#[ cfg( all( feature = "std" , target_arch = "x86_64" ) ) ]
237- #[ allow( missing_docs, dead_code) ]
237+ #[ allow( clippy :: all , missing_docs, dead_code, unused_variables , unused_imports ) ]
238238pub ( crate ) mod simd_avx512;
239239#[ cfg( all( feature = "std" , target_arch = "x86_64" ) ) ]
240- #[ allow( missing_docs) ]
240+ #[ allow( clippy :: all , missing_docs, dead_code , unused_variables , unused_imports ) ]
241241pub mod simd_avx2;
242242
243243#[ cfg( feature = "std" ) ]
244- #[ allow( missing_docs) ]
244+ #[ allow( clippy :: all , missing_docs, dead_code , unused_variables , unused_imports ) ]
245245pub mod simd_amx;
246246
247247#[ cfg( feature = "std" ) ]
248- #[ allow( missing_docs) ]
248+ #[ allow( clippy :: all , missing_docs, dead_code , unused_variables , unused_imports ) ]
249249pub mod simd_neon;
250250
251251#[ cfg( feature = "std" ) ]
252- #[ allow( missing_docs) ]
252+ #[ allow( clippy :: all , missing_docs, dead_code , unused_variables , unused_imports ) ]
253253pub mod simd_wasm;
254254
255255/// Pluggable linear algebra backends (native SIMD, MKL, OpenBLAS).
@@ -258,6 +258,13 @@ pub mod backend;
258258
259259/// HPC extensions ported from rustynum: BLAS, statistics, HDC, CogRecord, FFT, LAPACK.
260260#[ cfg( feature = "std" ) ]
261+ #[ allow(
262+ clippy:: all,
263+ unused_imports,
264+ unused_variables,
265+ unused_mut,
266+ dead_code
267+ ) ]
261268pub mod hpc;
262269
263270pub use crate :: zip:: { FoldWhile , IntoNdProducer , NdProducer , Zip } ;
@@ -1910,7 +1917,7 @@ mod impl_arc_array;
19101917/// Returns `true` if the pointer is aligned.
19111918pub ( crate ) fn is_aligned < T > ( ptr : * const T ) -> bool
19121919{
1913- ( ptr as usize ) % :: std:: mem:: align_of :: < T > ( ) == 0
1920+ ( ptr as usize ) . is_multiple_of ( :: std:: mem:: align_of :: < T > ( ) )
19141921}
19151922
19161923// Triangular constructors
0 commit comments