Skip to content

Commit 6e94918

Browse files
committed
Add --all-features to clippy invocation'.
`h1-client-rustls` is preferred when `h1-client` is also enabled.
1 parent 876912d commit 6e94918

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
components: rustfmt, clippy, rust-docs
8181

8282
- name: clippy
83-
run: cargo clippy --benches --bins --examples --tests -- -D warnings
83+
run: cargo clippy --all-features --benches --bins --examples --tests -- -D warnings
8484

8585
- name: fmt
8686
run: cargo fmt --all -- --check
@@ -100,4 +100,4 @@ jobs:
100100
- name: Check all feature combinations works properly
101101
# * `--feature-powerset` - run for the feature powerset of the package
102102
# * `--no-dev-deps` - build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866
103-
run: cargo hack check --feature-powerset --no-dev-deps --skip=default-client,wasm-client --skip=h1-client,h1-client-rustls
103+
run: cargo hack check --feature-powerset --no-dev-deps --skip=default-client,wasm-client

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl Config {
203203
}
204204
/// Set TLS Configuration (Native TLS)
205205
#[cfg_attr(feature = "docs", doc(cfg(feature = "h1-client")))]
206-
#[cfg(feature = "h1-client")]
206+
#[cfg(all(feature = "h1-client", not(feature = "h1-client-rustls")))]
207207
pub fn set_tls_config(
208208
mut self,
209209
tls_config: Option<std::sync::Arc<async_native_tls::TlsConnector>>,

0 commit comments

Comments
 (0)