File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ pub(crate) const fn cast_ptr<T>(n: &T) -> *const T {
127
127
///
128
128
/// This is a workaround for the lack of panic-in-const in older
129
129
/// toolchains.
130
- #[ allow( unconditional_panic) ]
130
+ #[ allow( unconditional_panic, clippy :: out_of_bounds_indexing ) ]
131
131
pub ( crate ) const fn unwrap_u32 ( t : Option < u32 > ) -> u32 {
132
132
match t {
133
133
Some ( v) => v,
@@ -139,7 +139,7 @@ pub(crate) const fn unwrap_u32(t: Option<u32>) -> u32 {
139
139
///
140
140
/// This is a workaround for the lack of panic-in-const in older
141
141
/// toolchains.
142
- #[ allow( unconditional_panic) ]
142
+ #[ allow( unconditional_panic, clippy :: out_of_bounds_indexing ) ]
143
143
pub ( crate ) const fn unwrap_nonzero ( t : Option < NonZeroU32 > ) -> NonZeroU32 {
144
144
match t {
145
145
Some ( v) => v,
You can’t perform that action at this time.
0 commit comments