Skip to content

Commit

Permalink
Fix the build with the ssl feature
Browse files Browse the repository at this point in the history
Also add a cargo check in the CI to make sure that it won't be broken
again
  • Loading branch information
Eijebong committed Aug 11, 2018
1 parent 6a47eaf commit 631a9bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ matrix:
- rust: nightly
script:
- cargo build
- cargo check --features ssl
- cargo check --features nativetls
- cargo test
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]] ; then cargo install clippy --force && cargo clippy -- -A doc_markdown -A cyclomatic_complexity -A collapsible_if ; fi'
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]] ; then rustup component add rustfmt-preview && cargo fmt --all -- --write-mode=diff ; fi'
Expand Down
2 changes: 1 addition & 1 deletion src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::net::SocketAddr;
use bytes::{Buf, BufMut};
use mio::tcp::TcpStream;
#[cfg(feature = "ssl")]
use openssl::ssl::Error as SslError;
use openssl::ssl::{Error as SslError, HandshakeError, MidHandshakeSslStream, SslStream};
#[cfg(feature = "nativetls")]
use native_tls::{HandshakeError, MidHandshakeTlsStream as MidHandshakeSslStream, TlsStream as SslStream};

Expand Down

0 comments on commit 631a9bb

Please sign in to comment.