Skip to content

Commit 631a9bb

Browse files
committed
Fix the build with the ssl feature
Also add a cargo check in the CI to make sure that it won't be broken again
1 parent 6a47eaf commit 631a9bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ matrix:
99
- rust: nightly
1010
script:
1111
- cargo build
12+
- cargo check --features ssl
13+
- cargo check --features nativetls
1214
- cargo test
1315
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]] ; then cargo install clippy --force && cargo clippy -- -A doc_markdown -A cyclomatic_complexity -A collapsible_if ; fi'
1416
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]] ; then rustup component add rustfmt-preview && cargo fmt --all -- --write-mode=diff ; fi'

src/stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::net::SocketAddr;
77
use bytes::{Buf, BufMut};
88
use mio::tcp::TcpStream;
99
#[cfg(feature = "ssl")]
10-
use openssl::ssl::Error as SslError;
10+
use openssl::ssl::{Error as SslError, HandshakeError, MidHandshakeSslStream, SslStream};
1111
#[cfg(feature = "nativetls")]
1212
use native_tls::{HandshakeError, MidHandshakeTlsStream as MidHandshakeSslStream, TlsStream as SslStream};
1313

0 commit comments

Comments
 (0)