Merge pull request #266 from teozkr/chore/rust-1.56

Downgrade MSRV to 1.56
pull/271/head
Daniel Abramov 3 years ago committed by GitHub
commit d9a1ab2cb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Cargo.toml
  2. 6
      src/handshake/client.rs

@ -11,7 +11,7 @@ documentation = "https://docs.rs/tungstenite/0.17.1"
repository = "https://github.com/snapview/tungstenite-rs"
version = "0.17.1"
edition = "2018"
rust-version = "1.58"
rust-version = "1.56"
include = ["benches/**/*", "src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]
[package.metadata.docs.rs]

@ -135,7 +135,7 @@ fn generate_request(mut request: Request) -> Result<(Vec<u8>, String)> {
HeaderName::from_bytes(header.as_bytes()).unwrap(),
))
})?;
write!(req, "{header}: {value}\r\n", value = value.to_str()?).unwrap();
write!(req, "{header}: {value}\r\n", header = header, value = value.to_str()?).unwrap();
}
// Now we must ensure that the headers that we've written once are not anymore present in the map.
@ -300,7 +300,9 @@ mod tests {
Upgrade: websocket\r\n\
Sec-WebSocket-Version: 13\r\n\
Sec-WebSocket-Key: {key}\r\n\
\r\n"
\r\n",
host = host,
key = key
)
.into_bytes()
}

Loading…
Cancel
Save