Skip to content

Commit 3ab28d4

Browse files
committed
Remove explicit imports of std::future::Future, as it is now in the prelude
1 parent ab622d7 commit 3ab28d4

File tree

6 files changed

+3
-7
lines changed

6 files changed

+3
-7
lines changed

crates/cli/src/lifecycle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// SPDX-License-Identifier: AGPL-3.0-only
44
// Please see LICENSE in the repository root for full details.
55

6-
use std::{future::Future, process::ExitCode, time::Duration};
6+
use std::{process::ExitCode, time::Duration};
77

88
use futures_util::future::{BoxFuture, Either};
99
use mas_handlers::ActivityTracker;

crates/http/src/reqwest.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// Please see LICENSE in the repository root for full details.
55

66
use std::{
7-
future::Future,
87
str::FromStr,
98
sync::{Arc, LazyLock},
109
time::Duration,

crates/listener/src/server.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Please see LICENSE in the repository root for full details.
66

77
use std::{
8-
future::Future,
98
pin::Pin,
109
sync::Arc,
1110
task::{Context, Poll},

crates/tower/src/metrics/duration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// SPDX-License-Identifier: AGPL-3.0-only
55
// Please see LICENSE in the repository root for full details.
66

7-
use std::{future::Future, time::Instant};
7+
use std::time::Instant;
88

99
use opentelemetry::{KeyValue, metrics::Histogram};
1010
use pin_project_lite::pin_project;

crates/tower/src/metrics/in_flight.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// SPDX-License-Identifier: AGPL-3.0-only
55
// Please see LICENSE in the repository root for full details.
66

7-
use std::future::Future;
8-
97
use opentelemetry::{KeyValue, metrics::UpDownCounter};
108
use pin_project_lite::pin_project;
119
use tower::{Layer, Service};

crates/tower/src/tracing/future.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// SPDX-License-Identifier: AGPL-3.0-only
55
// Please see LICENSE in the repository root for full details.
66

7-
use std::{future::Future, task::ready};
7+
use std::task::ready;
88

99
use pin_project_lite::pin_project;
1010
use tracing::Span;

0 commit comments

Comments
 (0)