File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ fn main() {
3030 }"# . to_string( ) ,
3131 line_start: 51 ,
3232 origin: Some ( "src/format.rs" . to_string( ) ) ,
33- fold: true ,
33+ fold: false ,
3434 annotations: vec![
3535 SourceAnnotation {
3636 label: "expected `Option<String>` because of return type" . to_string( ) ,
3737 annotation_type: AnnotationType :: Warning ,
3838 range: ( 6 , 20 ) ,
3939 } ,
4040 SourceAnnotation {
41- label: "expected enum `std::option::Option" . to_string( ) ,
41+ label: "expected enum `std::option::Option` " . to_string( ) ,
4242 annotation_type: AnnotationType :: Error ,
4343 range: ( 23 , 746 ) ,
4444 } ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ impl DisplayListFormatting for Formatter {
1818
1919 fn format_inline_marks ( inline_marks : & [ DisplayMark ] , inline_marks_width : usize ) -> String {
2020 format ! (
21- "{:>width$}" ,
21+ " {:>width$}" ,
2222 inline_marks
2323 . iter( )
2424 . map( |mark| {
@@ -215,7 +215,7 @@ impl fmt::Display for DisplayList {
215215 DisplayLine :: Source { inline_marks, .. } => {
216216 let width = inline_marks. len ( ) ;
217217 if width > max {
218- width + 1
218+ width
219219 } else {
220220 max
221221 }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ impl DisplayListFormatting for Formatter {
2323
2424 fn format_inline_marks ( inline_marks : & [ DisplayMark ] , inline_marks_width : usize ) -> String {
2525 format ! (
26- "{:>width$}" ,
26+ " {:>width$}" ,
2727 inline_marks
2828 . iter( )
2929 . map( |mark| {
@@ -273,7 +273,7 @@ impl fmt::Display for DisplayList {
273273 DisplayLine :: Source { inline_marks, .. } => {
274274 let width = inline_marks. len ( ) ;
275275 if width > max {
276- width + 1
276+ width
277277 } else {
278278 max
279279 }
You can’t perform that action at this time.
0 commit comments