Remove explicit imports of std::future::Future, as it is now in the prelude

This commit is contained in:
Quentin Gliech
2025-02-21 16:24:53 +01:00
parent 6fcdad6b26
commit eca6955f07
6 changed files with 3 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Please see LICENSE in the repository root for full details.
use std::{future::Future, process::ExitCode, time::Duration};
use std::{process::ExitCode, time::Duration};
use futures_util::future::{BoxFuture, Either};
use mas_handlers::ActivityTracker;

View File

@@ -4,7 +4,6 @@
// Please see LICENSE in the repository root for full details.
use std::{
future::Future,
str::FromStr,
sync::{Arc, LazyLock},
time::Duration,

View File

@@ -5,7 +5,6 @@
// Please see LICENSE in the repository root for full details.
use std::{
future::Future,
pin::Pin,
sync::Arc,
task::{Context, Poll},

View File

@@ -4,7 +4,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Please see LICENSE in the repository root for full details.
use std::{future::Future, time::Instant};
use std::time::Instant;
use opentelemetry::{KeyValue, metrics::Histogram};
use pin_project_lite::pin_project;

View File

@@ -4,8 +4,6 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Please see LICENSE in the repository root for full details.
use std::future::Future;
use opentelemetry::{KeyValue, metrics::UpDownCounter};
use pin_project_lite::pin_project;
use tower::{Layer, Service};

View File

@@ -4,7 +4,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Please see LICENSE in the repository root for full details.
use std::{future::Future, task::ready};
use std::task::ready;
use pin_project_lite::pin_project;
use tracing::Span;