diff options
author | Yuchen Wu <[email protected]> | 2024-07-26 10:23:14 -0700 |
---|---|---|
committer | Yuchen Wu <[email protected]> | 2024-07-26 13:35:13 -0700 |
commit | 32303b9258fed5ce7d214515bddb2b7a0585fbe0 (patch) | |
tree | 5c51cf1f2f298c8bd212cf37a2d37b1ad73c3380 /pingora-proxy | |
parent | ff2582a64a5926c7ad0909f3c26b9da9ce578ba4 (diff) | |
download | pingora-32303b9258fed5ce7d214515bddb2b7a0585fbe0.tar.gz pingora-32303b9258fed5ce7d214515bddb2b7a0585fbe0.zip |
Address Rust 1.80 clippy warnings.
Also remove the doc_async_trait cfg since it is no longer viable.
Diffstat (limited to 'pingora-proxy')
-rw-r--r-- | pingora-proxy/Cargo.toml | 7 | ||||
-rw-r--r-- | pingora-proxy/src/lib.rs | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/pingora-proxy/Cargo.toml b/pingora-proxy/Cargo.toml index 65f7f67..0a52dff 100644 --- a/pingora-proxy/Cargo.toml +++ b/pingora-proxy/Cargo.toml @@ -55,3 +55,10 @@ serde_yaml = "0.8" default = ["openssl"] openssl = ["pingora-core/openssl", "pingora-cache/openssl"] boringssl = ["pingora-core/boringssl", "pingora-cache/boringssl"] + +# or locally cargo doc --config "build.rustdocflags='--cfg doc_async_trait'" +[package.metadata.docs.rs] +rustdoc-args = ["--cfg", "doc_async_trait"] + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_async_trait)'] }
\ No newline at end of file diff --git a/pingora-proxy/src/lib.rs b/pingora-proxy/src/lib.rs index a02b23f..eebf65d 100644 --- a/pingora-proxy/src/lib.rs +++ b/pingora-proxy/src/lib.rs @@ -35,9 +35,6 @@ //! //! See `examples/load_balancer.rs` for a detailed example. -// enable nightly feature async trait so that the docs are cleaner -#![cfg_attr(doc_async_trait, feature(async_fn_in_trait))] - use async_trait::async_trait; use bytes::Bytes; use futures::future::FutureExt; |