chore: clean up no longer used imports (#3845)

Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
tison 2025-05-03 09:20:34 +08:00 committed by GitHub
parent 91d26bad4d
commit 5736ab6c21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,12 +4,6 @@
// We'll generally lean towards Tokio's types as those are more featureful
// (including `tokio-console` support) and more widely deployed.
#[cfg(all(feature = "_rt-async-std", not(feature = "_rt-tokio")))]
pub use async_std::sync::{Mutex as AsyncMutex, MutexGuard as AsyncMutexGuard};
#[cfg(feature = "_rt-tokio")]
pub use tokio::sync::{Mutex as AsyncMutex, MutexGuard as AsyncMutexGuard};
pub struct AsyncSemaphore {
// We use the semaphore from futures-intrusive as the one from async-std
// is missing the ability to add arbitrary permits, and is not guaranteed to be fair: