diff options
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs index 08def533..1d2ebe17 100644 --- a/src/syntax/ast.rs +++ b/src/syntax/ast.rs @@ -1696,7 +1696,7 @@ node! { impl ModuleImport { /// The module or path from which the items should be imported. pub fn source(&self) -> Expr { - self.0.cast_last_match().unwrap_or_default() + self.0.cast_first_match().unwrap_or_default() } /// The items to be imported. |
