File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ impl fmt::Display for DisplayList {
2727 }
2828 _ => max,
2929 } ) ;
30- let body = self . body . clone ( ) . into_iter ( )
30+ let body = self . body
31+ . clone ( )
32+ . into_iter ( )
3133 . map ( |line| FormattedDisplayLine :: format ( line, lineno_width, inline_marks_width) )
3234 . collect ( ) ;
3335 let fdl = FormattedDisplayList { body } ;
Original file line number Diff line number Diff line change @@ -300,7 +300,9 @@ impl From<Snippet> for DisplayList {
300300 let body = format_body ( & snippet) ;
301301 let header = format_header ( & snippet, & body) ;
302302
303- Self { body : vec ! [ & header[ ..] , & body[ ..] ] . concat ( ) }
303+ Self {
304+ body : vec ! [ & header[ ..] , & body[ ..] ] . concat ( ) ,
305+ }
304306 }
305307}
306308
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ extern crate annotate_snippets;
77extern crate glob;
88extern crate serde_yaml;
99
10- use annotate_snippets:: snippet:: Snippet ;
1110use annotate_snippets:: display_list:: DisplayList ;
11+ use annotate_snippets:: snippet:: Snippet ;
1212use glob:: glob;
1313use snippet:: SnippetDef ;
1414use std:: error:: Error ;
You can’t perform that action at this time.
0 commit comments