We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33e99c5 commit 3138a0eCopy full SHA for 3138a0e
http-body/src/lib.rs
@@ -141,6 +141,8 @@ impl<B: Body> Body for http::Request<B> {
141
self: Pin<&mut Self>,
142
cx: &mut Context<'_>,
143
) -> Poll<Option<Result<Frame<Self::Data>, Self::Error>>> {
144
+ // SAFETY:
145
+ // A pin projection.
146
unsafe {
147
self.map_unchecked_mut(http::Request::body_mut)
148
.poll_frame(cx)
@@ -164,6 +166,8 @@ impl<B: Body> Body for http::Response<B> {
164
166
165
167
168
169
170
171
172
self.map_unchecked_mut(http::Response::body_mut)
173
0 commit comments