Migrate tokio-postgres-openssl to 2018 edition
This commit is contained in:
parent
d371e9bd6f
commit
e0c37c3681
@ -2,6 +2,7 @@
|
||||
name = "tokio-postgres-openssl"
|
||||
version = "0.1.0"
|
||||
authors = ["Steven Fackler <sfackler@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.1"
|
||||
|
@ -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};
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user