.compile() can take &self
@@ -36,7 +36,7 @@ impl<TPerfLogger: PerfLogger> Compiler<TPerfLogger> {
}
}
- pub async fn compile(self) -> Result<CompilerState> {
+ pub async fn compile(&self) -> Result<CompilerState> {
let setup_event = self.perf_logger.create_event("compiler_setup");
let file_source = FileSource::connect(&self.config, &setup_event).await?;
