diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-07-28 21:08:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 15:08:13 -0400 |
commit | 315efbc0e86d9d848efa4b889aefbc665508598a (patch) | |
tree | b9f4b941a8bed34bae1766d2dd3b3045eb523f68 /cli/swc_util.rs | |
parent | b7942bf0f6f151e172db9b1e08cf4436e8365e8b (diff) |
fix: downcast from SwcDiagnosticBuffer to OpError (#6909)
Diffstat (limited to 'cli/swc_util.rs')
-rw-r--r-- | cli/swc_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/swc_util.rs b/cli/swc_util.rs index 906d9f9bd..8203c4c3a 100644 --- a/cli/swc_util.rs +++ b/cli/swc_util.rs @@ -141,7 +141,7 @@ pub struct AstParser { } impl AstParser { - pub fn new() -> Self { + pub fn default() -> Self { let buffered_error = SwcErrorBuffer::default(); let handler = Handler::with_emitter_and_flags( |