From de01a5c5b7bcf8b386314442d3c057009c1748c7 Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Wed, 9 Oct 2019 17:19:34 +0200 Subject: [PATCH] Stabilize io::Cursor --- src/io/cursor.rs | 1 - src/prelude.rs | 2 +- src/sync/barrier.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/io/cursor.rs b/src/io/cursor.rs index 2dfc8a7..603b85a 100644 --- a/src/io/cursor.rs +++ b/src/io/cursor.rs @@ -21,7 +21,6 @@ use crate::task::{Context, Poll}; /// [`Vec`]: https://doc.rust-lang.org/std/vec/struct.Vec.html /// [bytes]: https://doc.rust-lang.org/std/primitive.slice.html /// [`File`]: struct.File.html -#[cfg_attr(feature = "docs", doc(cfg(unstable)))] #[derive(Clone, Debug, Default)] pub struct Cursor { inner: std::io::Cursor, diff --git a/src/prelude.rs b/src/prelude.rs index 4c26a28..645d7a2 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -21,7 +21,7 @@ pub use crate::io::Read as _; pub use crate::io::Seek as _; #[doc(no_inline)] pub use crate::io::Write as _; -#[doc(hidden)] +#[doc(no_inline)] pub use crate::stream::Stream; #[doc(no_inline)] pub use crate::task_local; diff --git a/src/sync/barrier.rs b/src/sync/barrier.rs index 694bf99..43488ee 100644 --- a/src/sync/barrier.rs +++ b/src/sync/barrier.rs @@ -157,7 +157,7 @@ impl Barrier { drop(lock); while local_gen == generation_id && count < self.n { - let (g, c) = wait.recv().await.expect("sender hasn not been closed"); + let (g, c) = wait.recv().await.expect("sender has not been closed"); generation_id = g; count = c; }