Skip to content

Commit

Permalink
Release 0.4.3 (#388)
Browse files Browse the repository at this point in the history
* Release 0.4.3

* fix import
  • Loading branch information
davidpdrsn authored Jul 20, 2023
1 parent 5bf2b68 commit 8389995
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions tower-http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- None.

# 0.4.3 (July 20, 2023)

## Fixed

- **compression:** Fix accidental breaking change in 0.4.2.

# 0.4.2 (July 19, 2023)

## Added
Expand Down
2 changes: 1 addition & 1 deletion tower-http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tower-http"
description = "Tower middleware and utilities for HTTP clients and servers"
version = "0.4.2"
version = "0.4.3"
authors = ["Tower Maintainers <team@tower-rs.com>"]
edition = "2018"
license = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion tower-http/src/compression_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use http::HeaderValue;
use http_body::Body;
use pin_project_lite::pin_project;
use std::{
convert::TryInto,
io,
pin::Pin,
task::{Context, Poll},
Expand Down Expand Up @@ -376,6 +375,8 @@ use async_compression::Level as AsyncCompressionLevel;
))]
impl CompressionLevel {
pub(crate) fn into_async_compression(self) -> AsyncCompressionLevel {
use std::convert::TryInto;

match self {
CompressionLevel::Fastest => AsyncCompressionLevel::Fastest,
CompressionLevel::Best => AsyncCompressionLevel::Best,
Expand Down

0 comments on commit 8389995

Please sign in to comment.