mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-24 09:19:25 +00:00
Improved middleware logic
This commit is contained in:
@ -43,8 +43,8 @@ impl SinglepassCompiler {
|
||||
|
||||
impl Compiler for SinglepassCompiler {
|
||||
/// 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
|
||||
}
|
||||
|
||||
/// Compile the module using Singlepass, producing a compilation result with
|
||||
|
Reference in New Issue
Block a user