Skip to content

Commit 249b5c0

Browse files
committed
address review comment
1 parent 4a10628 commit 249b5c0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/libsyntax/parse/lexer/comments.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)