Fix some clippy lints

This commit is contained in:
Jeremy Soller 2023-11-15 09:21:13 -07:00
parent 6536231dfc
commit 19ae07bd3b
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
5 changed files with 18 additions and 41 deletions

View file

@ -61,10 +61,10 @@
#![allow(clippy::new_without_default)]
// TODO: address occurrences and then deny
//
// Overflows can produce unpredictable results and are only checked in debug builds
#![allow(clippy::arithmetic_side_effects)]
// Indexing a slice can cause panics and that is something we always want to avoid
#![allow(clippy::indexing_slicing)]
// Overflows can produce unpredictable results and are only checked in debug builds
#![allow(clippy::integer_arithmetic)]
// Soundness issues
//
// Dereferencing unaligned pointers may be undefined behavior