File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1274,7 +1274,7 @@ impl HeaderName {
1274
1274
// https://blog.rust-lang.org/2021/12/02/Rust-1.57.0.html#panic-in-const-contexts
1275
1275
//
1276
1276
// See the panics section of this method's document for details.
1277
- #[ allow( clippy:: no_effect) ]
1277
+ #[ allow( clippy:: no_effect, clippy :: out_of_bounds_indexing ) ]
1278
1278
( [ ] as [ u8 ; 0 ] ) [ 0 ] ; // Invalid header name
1279
1279
}
1280
1280
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl HeaderValue {
91
91
// https://blog.rust-lang.org/2021/12/02/Rust-1.57.0.html#panic-in-const-contexts
92
92
//
93
93
// See the panics section of this method's document for details.
94
- #[ allow( clippy:: no_effect) ]
94
+ #[ allow( clippy:: no_effect, clippy :: out_of_bounds_indexing ) ]
95
95
( [ ] as [ u8 ; 0 ] ) [ 0 ] ; // Invalid header value
96
96
}
97
97
i += 1 ;
You can’t perform that action at this time.
0 commit comments