feat(lib): update Tokio, bytes, http, h2, and http-body
This commit is contained in:
@@ -12,8 +12,8 @@ use std::io;
|
||||
use std::marker::Unpin;
|
||||
|
||||
use bytes::{/*Buf, BufMut, */Bytes};
|
||||
use tokio_io::{AsyncRead, AsyncWrite};
|
||||
use tokio_sync::oneshot;
|
||||
use tokio::io::{AsyncRead, AsyncWrite};
|
||||
use tokio::sync::oneshot;
|
||||
|
||||
use crate::common::io::Rewind;
|
||||
use crate::common::{Future, Pin, Poll, task};
|
||||
@@ -136,7 +136,7 @@ impl Upgraded {
|
||||
}
|
||||
|
||||
impl AsyncRead for Upgraded {
|
||||
unsafe fn prepare_uninitialized_buffer(&self, buf: &mut [u8]) -> bool {
|
||||
unsafe fn prepare_uninitialized_buffer(&self, buf: &mut [std::mem::MaybeUninit<u8>]) -> bool {
|
||||
self.io.prepare_uninitialized_buffer(buf)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user