mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
Update Tokio to Rust 2018 (#1082)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user