From 93a582b8400bf795cb9af24ca3f8e19fa9048625 Mon Sep 17 00:00:00 2001 From: Oliver Gould Date: Fri, 21 Mar 2025 17:44:48 +0000 Subject: [PATCH] fix(app): avoid unused import on non-linux builds --- linkerd/app/src/spire.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkerd/app/src/spire.rs b/linkerd/app/src/spire.rs index eb25888b6c..d7872fef25 100644 --- a/linkerd/app/src/spire.rs +++ b/linkerd/app/src/spire.rs @@ -1,4 +1,3 @@ -use futures::TryFutureExt; use linkerd_app_core::{exp_backoff::ExponentialBackoff, Error}; use std::sync::Arc; use tokio::sync::watch; @@ -69,6 +68,7 @@ impl tower::Service<()> for Client { // as the request to the `MakeConnection`. let chan = Endpoint::try_from(TONIC_DEFAULT_URI)? .connect_with_connector(tower::util::service_fn(move |_: Uri| { + use futures::TryFutureExt; UnixStream::connect(stripped_path.clone()).map_ok(hyper_util::rt::TokioIo::new) })) .await?;