Skip to content

Commit

Permalink
address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Jan 4, 2016
1 parent 4a10628 commit 249b5c0
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/libsyntax/parse/lexer/comments.rs
Expand Up @@ -169,11 +169,7 @@ fn read_shebang_comment(rdr: &mut StringReader,
let p = rdr.last_pos;
debug!("<<< shebang comment");
comments.push(Comment {
style: if code_to_the_left {
Trailing
} else {
Isolated
},
style: if code_to_the_left { Trailing } else { Isolated },
lines: vec![rdr.read_one_line_comment()],
pos: p,
});
Expand All @@ -198,11 +194,7 @@ fn read_line_comments(rdr: &mut StringReader,
debug!("<<< line comments");
if !lines.is_empty() {
comments.push(Comment {
style: if code_to_the_left {
Trailing
} else {
Isolated
},
style: if code_to_the_left { Trailing } else { Isolated },
lines: lines,
pos: p,
});
Expand Down

0 comments on commit 249b5c0

Please sign in to comment.