refactor(server): work around deprecation of poll_accept method in tokio (#1890)

This commit is contained in:
Yotam Ofek
2019-08-14 21:46:49 +03:00
committed by Sean McArthur
parent a543c8eef2
commit 9d5299b655
3 changed files with 9 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
#![deny(warnings)]
use tokio::io::AsyncReadExt;
use tokio_fs::file::File;
use tokio_fs::File;
use hyper::{Body, Method, Result, Request, Response, Server, StatusCode};
use hyper::service::{make_service_fn, service_fn};