tokio-rs / tls

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

test fails with only feature http1 enabled #108

Open jonassmedegaard opened 2 years ago

jonassmedegaard commented 2 years ago

One test fenced with feature http1 fails like this when tested with cargo test --no-default-features --features http1:

error[E0599]: no method named `build` found for struct `ConnectorBuilder` in the current scope
   --> src/connector/builder.rs:271:14
    |
27  | pub struct ConnectorBuilder<State>(State);
    | ------------------------------------------ method `build` not found for this
...
271 |             .build();
    |              ^^^^^ method not found in `ConnectorBuilder<WantsProtocols2>`

Apparently that test additionally requires feature2, or need to be rewritten somehow.