Skip to content

Commit

Permalink
fix: To unstable feature
Browse files Browse the repository at this point in the history
  • Loading branch information
k-nasa committed Nov 2, 2019
1 parent 81873ae commit 271a674
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/io/stderr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ impl Stderr {
/// #
/// # Ok(()) }) }
/// ```
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
#[cfg(any(feature = "unstable", feature = "docs"))]
pub async fn lock(&self) -> StderrLock<'static> {
static STDERR: Lazy<std::io::Stderr> = Lazy::new(std::io::stderr);

Expand Down
2 changes: 2 additions & 0 deletions src/io/stdin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ impl Stdin {
/// #
/// # Ok(()) }) }
/// ```
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
#[cfg(any(feature = "unstable", feature = "docs"))]
pub async fn lock(&self) -> StdinLock<'static> {
static STDIN: Lazy<std::io::Stdin> = Lazy::new(std::io::stdin);

Expand Down
2 changes: 2 additions & 0 deletions src/io/stdout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ impl Stdout {
/// #
/// # Ok(()) }) }
/// ```
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
#[cfg(any(feature = "unstable", feature = "docs"))]
pub async fn lock(&self) -> StdoutLock<'static> {
static STDOUT: Lazy<std::io::Stdout> = Lazy::new(std::io::stdout);

Expand Down

0 comments on commit 271a674

Please sign in to comment.