When the with-hyper-tls feature is enabled, this will fail to compile:
let client = IpfsClient::default()
It fails because there are two implementations of the Default trait - one which is typed IpfsClient<HttpConnector> and another typed IpfsClient<HttpsConnector<HttpConnector>> - which has the unfortunate consequence of requiring the call site to disambiguate it, even if the call site does not care which Hyper connector is in play.
I've added docstring examples which trigger this problem, and demonstrate that it's fixed in this PR.
When the
with-hyper-tls
feature is enabled, this will fail to compile:It fails because there are two implementations of the
Default
trait - one which is typedIpfsClient<HttpConnector>
and another typedIpfsClient<HttpsConnector<HttpConnector>>
- which has the unfortunate consequence of requiring the call site to disambiguate it, even if the call site does not care which Hyper connector is in play.I've added docstring examples which trigger this problem, and demonstrate that it's fixed in this PR.