diff options
author | Maan2003 <[email protected]> | 2021-06-13 05:18:15 +0100 |
---|---|---|
committer | Maan2003 <[email protected]> | 2021-06-13 05:18:15 +0100 |
commit | 5ac6804bb3a07b959e8c2c3534255a8d6bb4948c (patch) | |
tree | 5109aa4e5ab163d687c1f7eb1de446cbd6a6cacd /crates/proc_macro_srv | |
parent | aabd41cafc1a79f5ad124a31a360ab0442c13efd (diff) |
cargo fmt
Diffstat (limited to 'crates/proc_macro_srv')
-rw-r--r-- | crates/proc_macro_srv/src/proc_macro/diagnostic.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crates/proc_macro_srv/src/proc_macro/diagnostic.rs b/crates/proc_macro_srv/src/proc_macro/diagnostic.rs index a30818982..9ceda2a47 100644 --- a/crates/proc_macro_srv/src/proc_macro/diagnostic.rs +++ b/crates/proc_macro_srv/src/proc_macro/diagnostic.rs | |||
@@ -101,12 +101,7 @@ impl Diagnostic { | |||
101 | S: MultiSpan, | 101 | S: MultiSpan, |
102 | T: Into<String>, | 102 | T: Into<String>, |
103 | { | 103 | { |
104 | Diagnostic { | 104 | Diagnostic { level, message: message.into(), spans: spans.into_spans(), children: vec![] } |
105 | level, | ||
106 | message: message.into(), | ||
107 | spans: spans.into_spans(), | ||
108 | children: vec![], | ||
109 | } | ||
110 | } | 105 | } |
111 | 106 | ||
112 | diagnostic_child_methods!(span_error, error, Level::Error); | 107 | diagnostic_child_methods!(span_error, error, Level::Error); |