tokio-rs / tls

A collection of Tokio based TLS libraries.
https://tokio.rs
MIT License
253 stars 86 forks source link

tokio-rustls: initialize Acceptor with default() in tests #119

Closed djc closed 1 year ago

djc commented 1 year ago

CI is failing because rustls 0.20.7 deprecated Acceptor::new() in favor of the infallible Acceptor::default() constructor (https://github.com/rustls/rustls/pull/1046). The failure is caused because we're using Acceptor::new() in tests (not in the library) and CI denies warnings. This PR adopts default() and forces the dependency to 0.20.7, which would also force the MSRV up for the library. Alternatively, we could locally allow deprecations in the tests?