quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.76k stars 380 forks source link

proto: Fix double-boxing of congestion::ControllerFactory #1641

Closed Ralith closed 1 year ago

Ralith commented 1 year ago

Allows callers who already have a trait object to pass it on without yet more boxing.

This propagates a lesson we've learned a few times at the quinn layer.