Update Tokio to Rust 2018 (#1082)

This commit is contained in:
Carl Lerche
2019-05-14 10:27:36 -07:00
committed by GitHub
parent 79d8820050
commit cb4aea394e
343 changed files with 1725 additions and 2813 deletions
+5 -9
View File
@@ -1,5 +1,7 @@
#![deny(missing_docs)]
#![doc(html_root_url = "https://docs.rs/tokio-tls/0.2.1")]
#![deny(rust_2018_idioms)]
#![cfg_attr(test, deny(warnings))]
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
//! Async TLS streams
//!
@@ -18,16 +20,10 @@
//! built. Configuration of TLS parameters is still primarily done through the
//! `native-tls` crate.
extern crate futures;
extern crate native_tls;
#[macro_use]
extern crate tokio_io;
use std::io::{self, Read, Write};
use futures::{Async, Future, Poll};
use native_tls::{Error, HandshakeError};
use tokio_io::{AsyncRead, AsyncWrite};
use std::io::{self, Read, Write};
use tokio_io::{try_nb, AsyncRead, AsyncWrite};
/// A wrapper around an underlying raw stream which implements the TLS or SSL
/// protocol.