mirror of https://github.com/fafhrd91/actix-net
stylistic review
This commit is contained in:
parent
b8574770ce
commit
5d8880fab4
|
@ -2,8 +2,6 @@
|
|||
|
||||
## Unreleased
|
||||
|
||||
## 3.2.0
|
||||
|
||||
- Added support to `http` crate version `1.0`.
|
||||
|
||||
## 3.1.1
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "actix-tls"
|
||||
version = "3.2.0"
|
||||
version = "3.1.1"
|
||||
authors = [
|
||||
"Nikolay Kim <fafhrd91@gmail.com>",
|
||||
"Rob Ede <robjtede@icloud.com>",
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
use http::Uri;
|
||||
use http_1::Uri as Http1Uri;
|
||||
use http as http_02;
|
||||
|
||||
use super::Host;
|
||||
|
||||
impl Host for Uri {
|
||||
impl Host for http_02::Uri {
|
||||
fn hostname(&self) -> &str {
|
||||
self.host().unwrap_or("")
|
||||
}
|
||||
|
@ -16,7 +15,7 @@ impl Host for Uri {
|
|||
}
|
||||
}
|
||||
|
||||
impl Host for Http1Uri {
|
||||
impl Host for http_1::Uri {
|
||||
fn hostname(&self) -> &str {
|
||||
self.host().unwrap_or("")
|
||||
}
|
||||
|
|
|
@ -117,8 +117,6 @@ async fn test_openssl_uri() {
|
|||
#[cfg(all(feature = "rustls-0_21", feature = "uri"))]
|
||||
#[actix_rt::test]
|
||||
async fn test_rustls_uri_http1() {
|
||||
use std::convert::TryFrom;
|
||||
|
||||
let srv = TestServer::start(|| {
|
||||
fn_service(|io: TcpStream| async {
|
||||
let mut framed = Framed::new(io, BytesCodec);
|
||||
|
|
Loading…
Reference in New Issue