@@ -14,6 +14,7 @@ impl DisplayListFormatting for Formatter {
1414 match annotation_type {
1515 DisplayAnnotationType :: Error => "error" . to_string ( ) ,
1616 DisplayAnnotationType :: Warning => "warning" . to_string ( ) ,
17+ DisplayAnnotationType :: Info => "info" . to_string ( ) ,
1718 DisplayAnnotationType :: Note => "note" . to_string ( ) ,
1819 DisplayAnnotationType :: Help => "help" . to_string ( ) ,
1920 }
@@ -51,12 +52,14 @@ impl DisplayListFormatting for Formatter {
5152 let mark = match annotation_type {
5253 DisplayAnnotationType :: Error => "^" ,
5354 DisplayAnnotationType :: Warning => "-" ,
55+ DisplayAnnotationType :: Info => "-" ,
5456 DisplayAnnotationType :: Note => "-" ,
5557 DisplayAnnotationType :: Help => "-" ,
5658 } ;
5759 let color = match annotation_type {
5860 DisplayAnnotationType :: Error => Fixed ( 9 ) . bold ( ) ,
5961 DisplayAnnotationType :: Warning => Fixed ( 11 ) . bold ( ) ,
62+ DisplayAnnotationType :: Info => Fixed ( 12 ) . bold ( ) ,
6063 DisplayAnnotationType :: Note => Style :: new ( ) . bold ( ) ,
6164 DisplayAnnotationType :: Help => Fixed ( 14 ) . bold ( ) ,
6265 } ;
@@ -133,6 +136,7 @@ impl DisplayListFormatting for Formatter {
133136 let color = match annotation_type {
134137 DisplayAnnotationType :: Error => Fixed ( 9 ) . bold ( ) ,
135138 DisplayAnnotationType :: Warning => Fixed ( 11 ) . bold ( ) ,
139+ DisplayAnnotationType :: Info => Fixed ( 12 ) . bold ( ) ,
136140 DisplayAnnotationType :: Note => Style :: new ( ) . bold ( ) ,
137141 DisplayAnnotationType :: Help => Fixed ( 14 ) . bold ( ) ,
138142 } ;
0 commit comments