Add convenient functions and operators for Module and module resolvers.

This commit is contained in:
Stephen Chung
2020-10-07 15:40:36 +08:00
parent a56859c2ac
commit d7bfe13b3e
4 changed files with 86 additions and 10 deletions

View File

@@ -459,7 +459,7 @@ impl Add<&Self> for &AST {
}
}
impl AddAssign<AST> for &mut AST {
impl AddAssign<AST> for AST {
fn add_assign(&mut self, rhs: AST) {
self.combine(rhs);
}