Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/proc-macro-srv/src/lib.rs')
-rw-r--r--crates/proc-macro-srv/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/proc-macro-srv/src/lib.rs b/crates/proc-macro-srv/src/lib.rs
index 9fb81afdee..ff5623f39e 100644
--- a/crates/proc-macro-srv/src/lib.rs
+++ b/crates/proc-macro-srv/src/lib.rs
@@ -94,7 +94,7 @@ impl<'env> ProcMacroSrv<'env> {
pub type ProcMacroClientHandle = Box<dyn ProcMacroClientInterface + Send>;
pub trait ProcMacroClientInterface {
- fn source_text(&mut self, file_id: u32, start: u32, end: u32) -> Option<String>;
+ fn source_text(&self, file_id: u32, start: u32, end: u32) -> Option<String>;
}
const EXPANDER_STACK_SIZE: usize = 8 * 1024 * 1024;