address review comment

This commit is contained in:
Tshepang Lekhonkhobe 2016-01-04 21:35:06 +02:00
parent 4a1062873e
commit 249b5c0b4a

View File

@ -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,
});
@ -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,
});