poc-serde-support
k-nasa 5 years ago
parent 0661f774c2
commit 81873ae5f3

@ -122,7 +122,7 @@ impl Stderr {
pub async fn lock(&self) -> StderrLock<'static> {
static STDERR: Lazy<std::io::Stderr> = Lazy::new(std::io::stderr);
blocking::spawn(move || StderrLock(STDERR.lock())).await
spawn_blocking(move || StderrLock(STDERR.lock())).await
}
}

@ -178,7 +178,7 @@ impl Stdin {
pub async fn lock(&self) -> StdinLock<'static> {
static STDIN: Lazy<std::io::Stdin> = Lazy::new(std::io::stdin);
blocking::spawn(move || StdinLock(STDIN.lock())).await
spawn_blocking(move || StdinLock(STDIN.lock())).await
}
}

@ -122,7 +122,7 @@ impl Stdout {
pub async fn lock(&self) -> StdoutLock<'static> {
static STDOUT: Lazy<std::io::Stdout> = Lazy::new(std::io::stdout);
blocking::spawn(move || StdoutLock(STDOUT.lock())).await
spawn_blocking(move || StdoutLock(STDOUT.lock())).await
}
}

Loading…
Cancel
Save