mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 13:38:33 +03:00
Use box for Diagnostic
This commit is contained in:
parent
4d52cb49d4
commit
e75836882b
@ -6,7 +6,7 @@ use std::fmt;
|
||||
|
||||
#[must_use]
|
||||
pub struct Diagnostic<'a> {
|
||||
db: Builder<'a>,
|
||||
db: Box<Builder<'a>>,
|
||||
}
|
||||
|
||||
impl<'a> Diagnostic<'a> {
|
||||
@ -21,7 +21,7 @@ impl<'a> Diagnostic<'a> {
|
||||
msg: &str,
|
||||
) -> Self {
|
||||
Diagnostic {
|
||||
db: Builder::new_diagnostic(
|
||||
db: box Builder::new_diagnostic(
|
||||
&handler.inner,
|
||||
RustcDiagnostic::new_with_code(level, code, msg),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user