diff --git a/CHANGELOG.md b/CHANGELOG.md index a50d087a..87a3a39b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +- Disable two clippy warnings in `array_proxy.rs` + ## [v0.23.1] - 2022-04-29 - GHA: rust dependency caching diff --git a/src/generate/array_proxy.rs b/src/generate/array_proxy.rs index fadec31d..b47074ba 100644 --- a/src/generate/array_proxy.rs +++ b/src/generate/array_proxy.rs @@ -13,7 +13,7 @@ pub struct ArrayProxy { /// an ArrayProxy. _array: marker::PhantomData, } - +#[allow(clippy::len_without_is_empty)] impl ArrayProxy { /// Get a reference from an [ArrayProxy] with no bounds checking. pub unsafe fn get_ref(&self, index: usize) -> &T { @@ -40,6 +40,7 @@ impl core::ops::Index for ArrayProxy &T { // Do a real array dereference for the bounds check. + #[allow(clippy::no_effect)] [(); C][index]; unsafe { self.get_ref(index) } }