Skip to content

Commit

Permalink
Merge pull request #273 from kangalioo/msrv-1.51
Browse files Browse the repository at this point in the history
Downgrade MSRV to 1.51
  • Loading branch information
daniel-abramov authored Mar 22, 2022
2 parents aeed529 + fa70a37 commit bb546ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/tungstenite/0.17.2"
repository = "https://github.com/snapview/tungstenite-rs"
version = "0.17.2"
edition = "2018"
rust-version = "1.56"
rust-version = "1.51"
include = ["benches/**/*", "src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion src/handshake/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fn generate_request(mut request: Request) -> Result<(Vec<u8>, String)> {
//
// See similar problem in `hyper`: https://github.com/hyperium/hyper/issues/1492
let headers = request.headers_mut();
for header in WEBSOCKET_HEADERS {
for &header in &WEBSOCKET_HEADERS {
let value = headers.remove(header).ok_or_else(|| {
Error::Protocol(ProtocolError::InvalidHeader(
HeaderName::from_bytes(header.as_bytes()).unwrap(),
Expand Down

0 comments on commit bb546ac

Please sign in to comment.