Improved middleware logic

This commit is contained in:
Syrus Akbary
2021-04-27 14:00:25 -07:00
parent 01e97a3734
commit cb66b5293d
7 changed files with 7 additions and 22 deletions

View File

@ -189,8 +189,8 @@ impl LLVMCompiler {
impl Compiler for LLVMCompiler {
/// Get the middlewares for this compiler
fn get_middlewares(&self) -> Vec<Arc<dyn ModuleMiddleware>> {
self.config.get_middlewares()
fn get_middlewares(&self) -> &[Arc<dyn ModuleMiddleware>] {
&self.config.middlewares
}
fn experimental_native_compile_module<'data, 'module>(