File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments