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