Skip to content

Commit 8f7be6f

Browse files
authored
test: remove env::set_var call in test logging initialization (#1437)
Per rust-lang/rust#90308, this is potentially a data race. In practice, I don't think it was actually problematic here, but it also wasn't doing anything of value, so we should remove it. This is currently the only `env::set_var` or `env::remove_var` call in the proxy. To prevent uses of these functions in the future, I also added a `disallowed-methods` configuration in `.clippy.toml` to emit a warning for any uses of `std::env::set_var` and `std::env::remove_var`. Unfortunately, this required adding a `deny` attribute basically everywhere, which is why this diff touches so many files. Closes linkerd/linkerd2#7651
1 parent d3cf6a0 commit 8f7be6f

File tree

60 files changed

+65
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+65
-59
lines changed

.clippy.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
type-complexity-threshold = 500
2+
disallowed-methods = [
3+
# mutating environment variables in a multi-threaded context can
4+
# cause data races.
5+
# see https://github.com/rust-lang/rust/issues/90308 for details.
6+
"std::env::set_var",
7+
"std::env::remove_var",
8+
]

hyper-balance/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use hyper::body::HttpBody;

linkerd/addr/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33
use linkerd_dns_name::Name;
44
use std::{

linkerd/app/admin/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod server;

linkerd/app/core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! - Tap
88
//! - Metric labeling
99
10-
#![deny(warnings, rust_2018_idioms)]
10+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
1111
#![forbid(unsafe_code)]
1212

1313
pub use drain;

linkerd/app/gateway/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod gateway;

linkerd/app/inbound/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! The inbound proxy is responsible for terminating traffic from other network
44
//! endpoints inbound to the local application.
55
6-
#![deny(warnings, rust_2018_idioms)]
6+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
77
#![forbid(unsafe_code)]
88

99
mod accept;

linkerd/app/integration/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Shared infrastructure for integration tests
22
3-
#![deny(warnings, rust_2018_idioms)]
3+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
44
#![forbid(unsafe_code)]
55

66
mod test_env;

linkerd/app/outbound/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! The outbound proxy is responsible for routing traffic from the local application to other hosts.
44
5-
#![deny(warnings, rust_2018_idioms)]
5+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
66
#![forbid(unsafe_code)]
77

88
mod discover;

linkerd/app/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Configures and executes the proxy
22
3-
#![deny(warnings, rust_2018_idioms)]
3+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
44
#![forbid(unsafe_code)]
55

66
pub mod dst;

linkerd/app/test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Shared infrastructure for integration tests
22
3-
#![deny(warnings, rust_2018_idioms)]
3+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
44
#![forbid(unsafe_code)]
55

66
pub use futures::{future, FutureExt, TryFuture, TryFutureExt};

linkerd/cache/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use linkerd_stack::{layer, NewService};

linkerd/conditional/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
/// Like `std::option::Option<C>` but `None` carries a reason why the value

linkerd/detect/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use bytes::BytesMut;

linkerd/dns/name/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod name;

linkerd/dns/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use linkerd_dns_name::NameRef;

linkerd/errno/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use std::fmt;

linkerd/error-respond/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Layer to map service errors into responses.
22
3-
#![deny(warnings, rust_2018_idioms)]
3+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
44
#![forbid(unsafe_code)]
55

66
use futures::{ready, TryFuture};

linkerd/error/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
pub mod recover;

linkerd/exp-backoff/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use futures::Stream;

linkerd/http-box/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod body;

linkerd/http-classify/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod service;

linkerd/http-metrics/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
pub use self::{requests::Requests, retries::Retries};

linkerd/http-retry/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use bytes::{Buf, BufMut, Bytes, BytesMut};

linkerd/identity/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod credentials;

linkerd/io/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod boxed;

linkerd/meshtls/boring/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
//! This crate provides an implementation of _meshtls_ backed by `boringssl` (as

linkerd/meshtls/rustls/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod client;

linkerd/meshtls/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
//! This crate provides a static interface for the proxy's x509 certificate

linkerd/meshtls/tests/boring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![cfg(feature = "boring")]
2-
#![deny(warnings, rust_2018_idioms)]
2+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
33
#![forbid(unsafe_code)]
44

55
mod util;

linkerd/meshtls/tests/rustls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![cfg(feature = "rustls")]
2-
#![deny(warnings, rust_2018_idioms)]
2+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
33
#![forbid(unsafe_code)]
44

55
mod util;

linkerd/metrics/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
//! Utilities for exposing metrics to Prometheus.

linkerd/opencensus/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
pub mod metrics;

linkerd/proxy/api-resolve/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use linkerd2_proxy_api as api;

linkerd/proxy/core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
pub mod resolve;

linkerd/proxy/discover/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use linkerd_proxy_core::Resolve;

linkerd/proxy/dns-resolve/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use futures::{future, prelude::*, stream};

linkerd/proxy/http/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33
use http::header::AsHeaderName;
44
use http::uri::Authority;

linkerd/proxy/identity-client/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
pub mod certify;

linkerd/proxy/resolve/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
pub mod map_endpoint;

linkerd/proxy/tap/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use linkerd_tls as tls;

linkerd/proxy/tcp/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
pub mod balance;

linkerd/reconnect/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Conditionally reconnects with a pluggable recovery/backoff strategy.
2-
#![deny(warnings, rust_2018_idioms)]
2+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
33
#![forbid(unsafe_code)]
44

55
#[cfg(test)]

linkerd/retry/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use futures::future;

linkerd/server-policy/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod network;

linkerd/service-profiles/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use futures::Stream;

linkerd/signal/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Unix signal handling for the proxy binary.
22
3-
#![deny(warnings, rust_2018_idioms)]
3+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
44
#![forbid(unsafe_code)]
55

66
/// Returns a `Future` that completes when the proxy should start to shutdown.

linkerd/stack/metrics/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod layer;

linkerd/stack/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Utilities for composing Tower Services.
22
3-
#![deny(warnings, rust_2018_idioms)]
3+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
44
#![forbid(unsafe_code)]
55

66
mod arc_new_service;

linkerd/stack/tracing/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use linkerd_stack::{layer, NewService, Proxy};

linkerd/tls/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
pub mod client;

linkerd/tls/test-util/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
pub struct Entity {

linkerd/tonic-watch/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
use futures::prelude::*;

linkerd/trace-context/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod propagation;

linkerd/tracing/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
pub mod level;

linkerd/tracing/src/test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pub fn trace_subscriber(default: impl ToString) -> (Dispatch, Handle) {
1111
.or_else(|_| env::var("RUST_LOG"))
1212
.unwrap_or_else(|_| default.to_string());
1313
let log_format = env::var("LINKERD2_PROXY_LOG_FORMAT").unwrap_or_else(|_| "PLAIN".to_string());
14-
env::set_var("LINKERD2_PROXY_LOG_FORMAT", &log_format);
1514
// This may fail, since the global log compat layer may have been
1615
// initialized by another test.
1716
let _ = init_log_compat();

linkerd/transport-header/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod server;

linkerd/transport-metrics/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(warnings, rust_2018_idioms)]
1+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
22
#![forbid(unsafe_code)]
33

44
mod client;

linkerd2-proxy/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! The main entrypoint for the proxy.
22

3-
#![deny(warnings, rust_2018_idioms)]
3+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
44
#![forbid(unsafe_code)]
55

66
// Emit a compile-time error if no TLS implementations are enabled. When adding

opencensus-proto/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! Vendored from <https://github.com/census-instrumentation/opencensus-proto/>.
44

5-
#![deny(warnings, rust_2018_idioms)]
5+
#![deny(warnings, rust_2018_idioms, clippy::disallowed_method)]
66
#![forbid(unsafe_code)]
77

88
pub mod agent {

0 commit comments

Comments
 (0)