Skip to content

Commit

Permalink
Bump MSRV to 1.56 (#299)
Browse files Browse the repository at this point in the history
* Bump MSRV to 1.56

* Fix a clippy lint
  • Loading branch information
jplatte committed Oct 4, 2022
1 parent aeb6e91 commit 833820f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Expand Up @@ -81,7 +81,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.51
toolchain: 1.56
profile: minimal
override: true
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -37,7 +37,7 @@ The [examples] folder contains various examples of how to use Tower HTTP:

## Minimum supported Rust version

tower-http's MSRV is 1.51.
tower-http's MSRV is 1.56.

## Getting Help

Expand Down
2 changes: 1 addition & 1 deletion tower-http/Cargo.toml
Expand Up @@ -10,7 +10,7 @@ repository = "https://github.com/tower-rs/tower-http"
homepage = "https://github.com/tower-rs/tower-http"
categories = ["asynchronous", "network-programming", "web-programming"]
keywords = ["io", "async", "futures", "service", "http"]
rust-version = "1.51"
rust-version = "1.56"

[dependencies]
bitflags = "1.3.1"
Expand Down
6 changes: 1 addition & 5 deletions tower-http/src/content_encoding.rs
Expand Up @@ -215,11 +215,7 @@ pub(crate) fn encodings(
};

let qval = if let Some(qval) = v.next() {
if let Some(qval) = QValue::parse(qval.trim()) {
qval
} else {
return None;
}
QValue::parse(qval.trim())?
} else {
QValue::one()
};
Expand Down

0 comments on commit 833820f

Please sign in to comment.