address review comment
This commit is contained in:
parent
4a1062873e
commit
249b5c0b4a
@ -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,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user