Only underline suggestion if it is not the only code being shown

This commit is contained in:
Esteban Küber 2017-07-05 16:39:06 -07:00
parent eb478e2381
commit 697c85a4f1
16 changed files with 98 additions and 43 deletions

View file

@ -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()
}
}