chore: add comment for default diagnostic symbols
This commit is contained in:
parent
041192eaae
commit
1eda83e3e5
1 changed files with 13 additions and 0 deletions
|
@ -162,6 +162,19 @@ pub struct Diagnostic {
|
|||
error: Option<String>,
|
||||
}
|
||||
|
||||
// NOTE: #6646 can be achieved by uncommenting this or adding the symbols
|
||||
// to the `map_or` default.
|
||||
// impl Default for Diagnostic {
|
||||
// fn default() -> Self {
|
||||
// Self {
|
||||
// hint: Some(String::from("○")),
|
||||
// info: Some(String::from("●")),
|
||||
// warning: Some(String::from("▲")),
|
||||
// error: Some(String::from("■")),
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
impl Diagnostic {
|
||||
const DEFAULT: &'static str = "●";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue