feat(protocol): Make SourceCode Send+Sync

This commit is contained in:
Kat Marchán 2021-09-19 18:57:51 -07:00
parent f87b158b22
commit 9aa8ff0d31
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ If you can read it, you can source it,
and it's not necessary to read the whole thing--meaning you should be able to
support SourceCodes which are gigabytes or larger in size.
*/
pub trait SourceCode {
pub trait SourceCode: Send + Sync {
/// Read the bytes for a specific span from this SourceCode, keeping a
/// certain number of lines before and after the span as context.
fn read_span<'a>(