Skip to content

Commit 8389995

Browse files
authored
Release 0.4.3 (#388)
* Release 0.4.3 * fix import
1 parent 5bf2b68 commit 8389995

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

tower-http/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323

2424
- None.
2525

26+
# 0.4.3 (July 20, 2023)
27+
28+
## Fixed
29+
30+
- **compression:** Fix accidental breaking change in 0.4.2.
31+
2632
# 0.4.2 (July 19, 2023)
2733

2834
## Added

tower-http/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tower-http"
33
description = "Tower middleware and utilities for HTTP clients and servers"
4-
version = "0.4.2"
4+
version = "0.4.3"
55
authors = ["Tower Maintainers <team@tower-rs.com>"]
66
edition = "2018"
77
license = "MIT"

tower-http/src/compression_utils.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use http::HeaderValue;
88
use http_body::Body;
99
use pin_project_lite::pin_project;
1010
use std::{
11-
convert::TryInto,
1211
io,
1312
pin::Pin,
1413
task::{Context, Poll},
@@ -376,6 +375,8 @@ use async_compression::Level as AsyncCompressionLevel;
376375
))]
377376
impl CompressionLevel {
378377
pub(crate) fn into_async_compression(self) -> AsyncCompressionLevel {
378+
use std::convert::TryInto;
379+
379380
match self {
380381
CompressionLevel::Fastest => AsyncCompressionLevel::Fastest,
381382
CompressionLevel::Best => AsyncCompressionLevel::Best,

0 commit comments

Comments
 (0)