File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
testcontainers/src/core/containers Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ impl ExecResult {
23
23
}
24
24
25
25
/// Returns an asynchronous reader for stdout. It follows log stream until the command exits.
26
- pub fn stdout < ' b > ( & ' b mut self ) -> Pin < Box < dyn AsyncBufRead + ' b > > {
26
+ pub fn stdout < ' b > ( & ' b mut self ) -> Pin < Box < dyn AsyncBufRead + Send + ' b > > {
27
27
Box :: pin ( tokio_util:: io:: StreamReader :: new ( & mut self . stdout ) )
28
28
}
29
29
30
30
/// Returns an asynchronous reader for stderr. It follows log stream until the command exits.
31
- pub fn stderr < ' b > ( & ' b mut self ) -> Pin < Box < dyn AsyncBufRead + ' b > > {
31
+ pub fn stderr < ' b > ( & ' b mut self ) -> Pin < Box < dyn AsyncBufRead + Send + ' b > > {
32
32
Box :: pin ( tokio_util:: io:: StreamReader :: new ( & mut self . stderr ) )
33
33
}
34
34
Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ impl SyncExecResult {
19
19
}
20
20
21
21
/// Returns an asynchronous reader for stdout.
22
- pub fn stdout < ' b > ( & ' b mut self ) -> Box < dyn BufRead + ' b > {
22
+ pub fn stdout < ' b > ( & ' b mut self ) -> Box < dyn BufRead + Send + ' b > {
23
23
Box :: new ( sync_reader:: SyncReadBridge :: new (
24
24
self . inner . stdout ( ) ,
25
25
self . runtime . clone ( ) ,
26
26
) )
27
27
}
28
28
29
29
/// Returns an asynchronous reader for stderr.
30
- pub fn stderr < ' b > ( & ' b mut self ) -> Box < dyn BufRead + ' b > {
30
+ pub fn stderr < ' b > ( & ' b mut self ) -> Box < dyn BufRead + Send + ' b > {
31
31
Box :: new ( sync_reader:: SyncReadBridge :: new (
32
32
self . inner . stderr ( ) ,
33
33
self . runtime . clone ( ) ,
You can’t perform that action at this time.
0 commit comments