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,
169
169
let p = rdr. last_pos ;
170
170
debug ! ( "<<< shebang comment" ) ;
171
171
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 } ,
177
173
lines : vec ! [ rdr. read_one_line_comment( ) ] ,
178
174
pos : p,
179
175
} ) ;
@@ -198,11 +194,7 @@ fn read_line_comments(rdr: &mut StringReader,
198
194
debug ! ( "<<< line comments" ) ;
199
195
if !lines. is_empty ( ) {
200
196
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 } ,
206
198
lines : lines,
207
199
pos : p,
208
200
} ) ;
You can’t perform that action at this time.
0 commit comments