time: mark Sleep as !Unpin in docs (#5916)

This commit is contained in:
Consoli
2023-08-06 13:34:08 +02:00
committed by GitHub
parent 8832e936b1
commit 51cffbb74f
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ signal = ["tokio/signal"]
[dependencies]
futures-core = { version = "0.3.0" }
pin-project-lite = "0.2.7"
pin-project-lite = "0.2.11"
tokio = { version = "1.15.0", path = "../tokio", features = ["sync"] }
tokio-util = { version = "0.7.0", path = "../tokio-util", optional = true }
+1 -1
View File
@@ -40,7 +40,7 @@ futures-core = "0.3.0"
futures-sink = "0.3.0"
futures-io = { version = "0.3.0", optional = true }
futures-util = { version = "0.3.0", optional = true }
pin-project-lite = "0.2.7"
pin-project-lite = "0.2.11"
slab = { version = "0.4.4", optional = true } # Backs `DelayQueue`
tracing = { version = "0.1.25", default-features = false, features = ["std"], optional = true }
+1 -1
View File
@@ -96,7 +96,7 @@ stats = []
[dependencies]
tokio-macros = { version = "~2.1.0", path = "../tokio-macros", optional = true }
pin-project-lite = "0.2.7"
pin-project-lite = "0.2.11"
# Everything else is optional...
bytes = { version = "1.0.0", optional = true }
+1
View File
@@ -220,6 +220,7 @@ pin_project! {
/// [`select!`]: ../macro.select.html
/// [`tokio::pin!`]: ../macro.pin.html
// Alias for old name in 0.2
#[project(!Unpin)]
#[cfg_attr(docsrs, doc(alias = "Delay"))]
#[derive(Debug)]
#[must_use = "futures do nothing unless you `.await` or poll them"]