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 @@ -120,7 +120,7 @@ impl Stderr {
120
120
/// # Ok(()) }) }
121
121
/// ```
122
122
pub async fn lock ( & self ) -> StderrLock < ' static > {
123
- static STDERR : Lazy < std:: io:: Stderr > = Lazy :: new ( || std:: io:: stderr ( ) ) ;
123
+ static STDERR : Lazy < std:: io:: Stderr > = Lazy :: new ( std:: io:: stderr) ;
124
124
125
125
blocking:: spawn ( move || StderrLock ( STDERR . lock ( ) ) ) . await
126
126
}
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ impl Stdin {
176
176
/// # Ok(()) }) }
177
177
/// ```
178
178
pub async fn lock ( & self ) -> StdinLock < ' static > {
179
- static STDIN : Lazy < std:: io:: Stdin > = Lazy :: new ( || std:: io:: stdin ( ) ) ;
179
+ static STDIN : Lazy < std:: io:: Stdin > = Lazy :: new ( std:: io:: stdin) ;
180
180
181
181
blocking:: spawn ( move || StdinLock ( STDIN . lock ( ) ) ) . await
182
182
}
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ impl Stdout {
120
120
/// # Ok(()) }) }
121
121
/// ```
122
122
pub async fn lock ( & self ) -> StdoutLock < ' static > {
123
- static STDOUT : Lazy < std:: io:: Stdout > = Lazy :: new ( || std:: io:: stdout ( ) ) ;
123
+ static STDOUT : Lazy < std:: io:: Stdout > = Lazy :: new ( std:: io:: stdout) ;
124
124
125
125
blocking:: spawn ( move || StdoutLock ( STDOUT . lock ( ) ) ) . await
126
126
}
You can’t perform that action at this time.
0 commit comments