internal: improve compilation critical path a bit

This commit is contained in:
Aleksey Kladov
2021-08-28 22:03:06 +03:00
parent 0dabcf0044
commit c639fe333f
7 changed files with 12 additions and 34 deletions

View File

@@ -39,7 +39,7 @@ impl ProcMacroProcessSrv {
&mut self,
dylib_path: &AbsPath,
) -> Result<Vec<(String, ProcMacroKind)>, tt::ExpansionError> {
let task = ListMacrosTask { lib: dylib_path.to_path_buf() };
let task = ListMacrosTask { lib: dylib_path.to_path_buf().into() };
let result: ListMacrosResult = self.send_task(Request::ListMacro(task))?;
Ok(result.macros)