We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 773a140 commit 4ecad77Copy full SHA for 4ecad77
examples/upgrades.rs
@@ -100,7 +100,7 @@ async fn client_upgrade_request(addr: SocketAddr) -> Result<()> {
100
.uri(format!("http://{}/", addr))
101
.header(UPGRADE, "foobar")
102
.body(Empty::<Bytes>::new())
103
- .unwrap();
+ .expect("request should be valid");
104
105
let stream = TcpStream::connect(addr).await?;
106
let io = TokioIo::new(stream);
0 commit comments