Use combine_flatten for plugin modules.

This commit is contained in:
Stephen Chung
2020-08-21 21:48:45 +08:00
parent 40f71320f3
commit 08977e2a62
12 changed files with 64 additions and 19 deletions

View File

@@ -133,7 +133,7 @@ impl AST {
filter: impl Fn(FnAccess, &str, usize) -> bool,
) -> Self {
let mut functions: Module = Default::default();
functions.merge_filtered(&self.1, filter);
functions.merge_filtered(&self.1, &filter);
Self(Default::default(), functions)
}
@@ -266,7 +266,7 @@ impl AST {
};
let mut functions = functions.clone();
functions.merge_filtered(&other.1, filter);
functions.merge_filtered(&other.1, &filter);
Self::new(ast, functions)
}