stylistic review

This commit is contained in:
Rob Ede 2023-12-05 18:49:18 -05:00
parent b8574770ce
commit 5d8880fab4
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
4 changed files with 4 additions and 9 deletions

View File

@ -2,8 +2,6 @@
## Unreleased
## 3.2.0
- Added support to `http` crate version `1.0`.
## 3.1.1

View File

@ -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>",

View File

@ -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("")
}

View File

@ -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);