Only underline suggestion if it is not the only code being shown
This commit is contained in:
parent
eb478e2381
commit
697c85a4f1
16 changed files with 98 additions and 43 deletions
|
@ -359,7 +359,7 @@ impl DiagnosticCode {
|
|||
|
||||
impl JsonEmitter {
|
||||
fn render(&self, suggestion: &CodeSuggestion) -> Vec<String> {
|
||||
suggestion.splice_lines(&*self.cm)
|
||||
suggestion.splice_lines(&*self.cm).iter().map(|line| line.0.to_owned()).collect()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue