From 315efbc0e86d9d848efa4b889aefbc665508598a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 28 Jul 2020 21:08:13 +0200 Subject: fix: downcast from SwcDiagnosticBuffer to OpError (#6909) --- cli/swc_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/swc_util.rs') 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( -- cgit v1.2.3