Skip to content

Commit

Permalink
Fix issues found by cargo clippy (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
iyangsj authored Oct 9, 2024
1 parent ac52a4e commit 36f66d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ pub extern "C" fn quic_endpoint_new(
context: sender_ctx,
});
let e = Endpoint::new(config.clone(), is_server, handler, sender);
Box::into_raw(config);
let _ = Box::into_raw(config);
Box::into_raw(Box::new(e))
}

Expand Down

0 comments on commit 36f66d6

Please sign in to comment.