Skip to content

Commit 271a674

Browse files
committed
fix: To unstable feature
1 parent 81873ae commit 271a674

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/io/stderr.rs

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ impl Stderr {
119119
/// #
120120
/// # Ok(()) }) }
121121
/// ```
122+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
123+
#[cfg(any(feature = "unstable", feature = "docs"))]
122124
pub async fn lock(&self) -> StderrLock<'static> {
123125
static STDERR: Lazy<std::io::Stderr> = Lazy::new(std::io::stderr);
124126

src/io/stdin.rs

+2
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ impl Stdin {
175175
/// #
176176
/// # Ok(()) }) }
177177
/// ```
178+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
179+
#[cfg(any(feature = "unstable", feature = "docs"))]
178180
pub async fn lock(&self) -> StdinLock<'static> {
179181
static STDIN: Lazy<std::io::Stdin> = Lazy::new(std::io::stdin);
180182

src/io/stdout.rs

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ impl Stdout {
119119
/// #
120120
/// # Ok(()) }) }
121121
/// ```
122+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
123+
#[cfg(any(feature = "unstable", feature = "docs"))]
122124
pub async fn lock(&self) -> StdoutLock<'static> {
123125
static STDOUT: Lazy<std::io::Stdout> = Lazy::new(std::io::stdout);
124126

0 commit comments

Comments
 (0)