avoid some Symbol
to String
conversions
This commit is contained in:
parent
95e77648e4
commit
c54d4ada26
18 changed files with 50 additions and 59 deletions
|
@ -496,7 +496,7 @@ impl Diagnostic {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn note_trait_signature(&mut self, name: String, signature: String) -> &mut Self {
|
||||
pub fn note_trait_signature(&mut self, name: Symbol, signature: String) -> &mut Self {
|
||||
self.highlighted_note(vec![
|
||||
(format!("`{}` from trait: `", name), Style::NoStyle),
|
||||
(signature, Style::Highlight),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue