1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

clear conn_data on HttpRequest drop (#2742)

* clear conn_data on HttpRequest drop

fixes #2740

* update changelog

* fix doc test
This commit is contained in:
Rob Ede
2022-04-23 13:35:41 +01:00
committed by GitHub
parent 56b9c0d08e
commit f2cacc4c9d
4 changed files with 14 additions and 7 deletions

View File

@ -114,7 +114,7 @@ mod _original {
use std::mem::MaybeUninit;
pub fn parse_headers(src: &mut BytesMut) -> usize {
#![allow(clippy::uninit_assumed_init)]
#![allow(invalid_value, clippy::uninit_assumed_init)]
let mut headers: [HeaderIndex; MAX_HEADERS] =
unsafe { MaybeUninit::uninit().assume_init() };