File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/libsyntax/parse/lexer Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -169,11 +169,7 @@ fn read_shebang_comment(rdr: &mut StringReader,
169169 let p = rdr. last_pos ;
170170 debug ! ( "<<< shebang comment" ) ;
171171 comments. push ( Comment {
172- style : if code_to_the_left {
173- Trailing
174- } else {
175- Isolated
176- } ,
172+ style : if code_to_the_left { Trailing } else { Isolated } ,
177173 lines : vec ! [ rdr. read_one_line_comment( ) ] ,
178174 pos : p,
179175 } ) ;
@@ -198,11 +194,7 @@ fn read_line_comments(rdr: &mut StringReader,
198194 debug ! ( "<<< line comments" ) ;
199195 if !lines. is_empty ( ) {
200196 comments. push ( Comment {
201- style : if code_to_the_left {
202- Trailing
203- } else {
204- Isolated
205- } ,
197+ style : if code_to_the_left { Trailing } else { Isolated } ,
206198 lines : lines,
207199 pos : p,
208200 } ) ;
You can’t perform that action at this time.
0 commit comments