Add Send + Sync marker traits to into_reader.
This allows the resulting Read to be shared among threads.
This commit is contained in:
committed by
Martin Algesten
parent
7046b07518
commit
5e00b5c5e3
@@ -32,7 +32,7 @@ pub enum Stream {
|
||||
Https(BufReader<TlsStream<TcpStream>>),
|
||||
Cursor(Cursor<Vec<u8>>),
|
||||
#[cfg(test)]
|
||||
Test(Box<dyn BufRead + Send>, Vec<u8>),
|
||||
Test(Box<dyn BufRead + Send + Sync>, Vec<u8>),
|
||||
}
|
||||
|
||||
// DeadlineStream wraps a stream such that read() will return an error
|
||||
|
||||
Reference in New Issue
Block a user