File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -232,8 +232,8 @@ impl<R: BufRead + Unpin + Send + 'static> ChunkedDecoder<R> {
232
232
State :: TrailerDone ( ref mut headers) => {
233
233
let headers = std:: mem:: replace ( headers, Vec :: new ( ) ) ;
234
234
for ( name, value) in headers. into_iter ( ) {
235
- let mut fut = self . trailer_sender . send ( ( name, value) ) ;
236
- match unsafe { Pin :: new_unchecked ( & mut fut) } . poll ( cx) {
235
+ let mut fut = Box :: pin ( self . trailer_sender . send ( ( name, value) ) ) ;
236
+ match Pin :: new ( & mut fut) . poll ( cx) {
237
237
Poll :: Ready ( _) => { }
238
238
Poll :: Pending => {
239
239
return Ok ( DecodeResult :: Some {
Original file line number Diff line number Diff line change 28
28
//! // tbi
29
29
//! ```
30
30
31
- // #![forbid(unsafe_code, rust_2018_idioms)]
31
+ #![ forbid( unsafe_code, rust_2018_idioms) ]
32
32
#![ deny( missing_debug_implementations, nonstandard_style) ]
33
33
// #![warn(missing_docs, missing_doc_code_examples, unreachable_pub)]
34
34
// #![cfg_attr(test, deny(warnings))]
You can’t perform that action at this time.
0 commit comments