File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ impl Stderr {
122
122
pub async fn lock ( & self ) -> StderrLock < ' static > {
123
123
static STDERR : Lazy < std:: io:: Stderr > = Lazy :: new ( std:: io:: stderr) ;
124
124
125
- blocking :: spawn ( move || StderrLock ( STDERR . lock ( ) ) ) . await
125
+ spawn_blocking ( move || StderrLock ( STDERR . lock ( ) ) ) . await
126
126
}
127
127
}
128
128
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ impl Stdin {
178
178
pub async fn lock ( & self ) -> StdinLock < ' static > {
179
179
static STDIN : Lazy < std:: io:: Stdin > = Lazy :: new ( std:: io:: stdin) ;
180
180
181
- blocking :: spawn ( move || StdinLock ( STDIN . lock ( ) ) ) . await
181
+ spawn_blocking ( move || StdinLock ( STDIN . lock ( ) ) ) . await
182
182
}
183
183
}
184
184
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ impl Stdout {
122
122
pub async fn lock ( & self ) -> StdoutLock < ' static > {
123
123
static STDOUT : Lazy < std:: io:: Stdout > = Lazy :: new ( std:: io:: stdout) ;
124
124
125
- blocking :: spawn ( move || StdoutLock ( STDOUT . lock ( ) ) ) . await
125
+ spawn_blocking ( move || StdoutLock ( STDOUT . lock ( ) ) ) . await
126
126
}
127
127
}
128
128
You can’t perform that action at this time.
0 commit comments