aboutsummaryrefslogtreecommitdiff
path: root/crates/proc_macro_srv/src
diff options
context:
space:
mode:
authorMaan2003 <[email protected]>2021-06-13 05:10:22 +0100
committerMaan2003 <[email protected]>2021-06-13 05:10:22 +0100
commitaabd41cafc1a79f5ad124a31a360ab0442c13efd (patch)
tree584a7f437204904fcf23b55e201cb27323790b02 /crates/proc_macro_srv/src
parentb857a5dcf094728b4beefd652ea31d2828eb0e10 (diff)
clippy::redundant_field_names
Diffstat (limited to 'crates/proc_macro_srv/src')
-rw-r--r--crates/proc_macro_srv/src/proc_macro/diagnostic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/proc_macro_srv/src/proc_macro/diagnostic.rs b/crates/proc_macro_srv/src/proc_macro/diagnostic.rs
index 55d93917c..a30818982 100644
--- a/crates/proc_macro_srv/src/proc_macro/diagnostic.rs
+++ b/crates/proc_macro_srv/src/proc_macro/diagnostic.rs
@@ -91,7 +91,7 @@ impl<'a> Iterator for Children<'a> {
91impl Diagnostic { 91impl Diagnostic {
92 /// Creates a new diagnostic with the given `level` and `message`. 92 /// Creates a new diagnostic with the given `level` and `message`.
93 pub fn new<T: Into<String>>(level: Level, message: T) -> Diagnostic { 93 pub fn new<T: Into<String>>(level: Level, message: T) -> Diagnostic {
94 Diagnostic { level: level, message: message.into(), spans: vec![], children: vec![] } 94 Diagnostic { level, message: message.into(), spans: vec![], children: vec![] }
95 } 95 }
96 96
97 /// Creates a new diagnostic with the given `level` and `message` pointing to 97 /// Creates a new diagnostic with the given `level` and `message` pointing to
@@ -102,7 +102,7 @@ impl Diagnostic {
102 T: Into<String>, 102 T: Into<String>,
103 { 103 {
104 Diagnostic { 104 Diagnostic {
105 level: level, 105 level,
106 message: message.into(), 106 message: message.into(),
107 spans: spans.into_spans(), 107 spans: spans.into_spans(),
108 children: vec![], 108 children: vec![],