Replace usage of mem::uninitialized
with MaybeUninit
#2532
Labels
A-http1
Area: HTTP/1 specific.
C-refactor
Category: refactor. This would improve the clarity of internal code.
E-easy
Effort: easy. A task that would be a great starting point for a new contributor.
When the following comment was added in #1845, hyper's minimum supported rust version was
1.27.0
hyper/src/proto/h1/role.rs
Lines 1 to 3 in 4e9a006
which I assume is why
std::mem::MaybeUninit
, stabilized in1.36.0
, could not be used yet. Today, hyper's MSRV is1.46.0
, so it should now be possible to investigate removing the#![allow(deprecated)]
.The text was updated successfully, but these errors were encountered: