Migrate tokio-postgres-openssl to 2018 edition

This commit is contained in:
Steven Fackler 2018-12-08 17:27:56 -08:00
parent d371e9bd6f
commit e0c37c3681
3 changed files with 4 additions and 12 deletions

View File

@ -2,6 +2,7 @@
name = "tokio-postgres-openssl"
version = "0.1.0"
authors = ["Steven Fackler <sfackler@gmail.com>"]
edition = "2018"
[dependencies]
futures = "0.1"

View File

@ -1,15 +1,6 @@
extern crate openssl;
extern crate tokio_io;
extern crate tokio_openssl;
extern crate tokio_postgres;
#![warn(rust_2018_idioms)]
#[macro_use]
extern crate futures;
#[cfg(test)]
extern crate tokio;
use futures::{Async, Future, Poll};
use futures::{try_ready, Async, Future, Poll};
use openssl::hash::MessageDigest;
use openssl::nid::Nid;
use openssl::ssl::{ConnectConfiguration, HandshakeError, SslRef};

View File

@ -4,7 +4,7 @@ use tokio::net::TcpStream;
use tokio::runtime::current_thread::Runtime;
use tokio_postgres::{self, PreferTls, RequireTls, TlsMode};
use TlsConnector;
use crate::TlsConnector;
fn smoke_test<T>(builder: &tokio_postgres::Builder, tls: T)
where