We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f483dc0 commit c9102e5Copy full SHA for c9102e5
crates/rustfix/src/lib.rs
@@ -167,8 +167,6 @@ pub fn collect_suggestions<S: ::std::hash::BuildHasher>(
167
}
168
169
170
- let snippets = diagnostic.spans.iter().map(span_to_snippet).collect();
171
-
172
let solutions: Vec<_> = diagnostic
173
.children
174
.iter()
@@ -204,7 +202,7 @@ pub fn collect_suggestions<S: ::std::hash::BuildHasher>(
204
202
} else {
205
203
Some(Suggestion {
206
message: diagnostic.message.clone(),
207
- snippets,
+ snippets: diagnostic.spans.iter().map(span_to_snippet).collect(),
208
solutions,
209
})
210
0 commit comments