From 9aa8ff0d3190e0fb1ee5ad48cb540b961fc46366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Sun, 19 Sep 2021 18:57:51 -0700 Subject: [PATCH] feat(protocol): Make SourceCode Send+Sync --- src/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.rs b/src/protocol.rs index 3722367..94c9708 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -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>(