Skip to content

Commit 0f600bc

Browse files
committed
chore(lib): update to 2021 edition
1 parent 7a0a640 commit 0f600bc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license = "MIT"
1010
authors = ["Sean McArthur <[email protected]>"]
1111
keywords = ["http", "hyper", "hyperium"]
1212
categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"]
13-
edition = "2018"
13+
edition = "2021"
1414
rust-version = "1.63" # keep in sync with MSRV.md dev doc
1515

1616
include = [

benches/end_to_end.rs

+1
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ fn spawn_server(rt: &tokio::runtime::Runtime, opts: &Opts) -> SocketAddr {
413413
let body = opts.response_body;
414414
let opts = opts.clone();
415415
rt.spawn(async move {
416+
let _ = &opts;
416417
while let Ok((sock, _)) = listener.accept().await {
417418
let io = support::TokioIo::new(sock);
418419
if opts.http2 {

src/ffi/body.rs

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ ffi_fn! {
150150
let userdata = UserDataPointer(userdata);
151151

152152
Box::into_raw(hyper_task::boxed(async move {
153+
let _ = &userdata;
153154
while let Some(item) = body.0.frame().await {
154155
let frame = item?;
155156
if let Ok(chunk) = frame.into_data() {

0 commit comments

Comments
 (0)