Skip to content

Commit 81873ae

Browse files
committed
fix
1 parent 0661f77 commit 81873ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/io/stderr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl Stderr {
122122
pub async fn lock(&self) -> StderrLock<'static> {
123123
static STDERR: Lazy<std::io::Stderr> = Lazy::new(std::io::stderr);
124124

125-
blocking::spawn(move || StderrLock(STDERR.lock())).await
125+
spawn_blocking(move || StderrLock(STDERR.lock())).await
126126
}
127127
}
128128

src/io/stdin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl Stdin {
178178
pub async fn lock(&self) -> StdinLock<'static> {
179179
static STDIN: Lazy<std::io::Stdin> = Lazy::new(std::io::stdin);
180180

181-
blocking::spawn(move || StdinLock(STDIN.lock())).await
181+
spawn_blocking(move || StdinLock(STDIN.lock())).await
182182
}
183183
}
184184

src/io/stdout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl Stdout {
122122
pub async fn lock(&self) -> StdoutLock<'static> {
123123
static STDOUT: Lazy<std::io::Stdout> = Lazy::new(std::io::stdout);
124124

125-
blocking::spawn(move || StdoutLock(STDOUT.lock())).await
125+
spawn_blocking(move || StdoutLock(STDOUT.lock())).await
126126
}
127127
}
128128

0 commit comments

Comments
 (0)