Format any statement whose span intersects file_lines
This commit is contained in:
parent
603f26d8f1
commit
b6f1b516d9
@ -50,7 +50,7 @@ fn visit_stmt(&mut self, stmt: &ast::Stmt) {
|
||||
// FIXME(#434): Move this check to somewhere more central, eg Rewrite.
|
||||
if !self.config
|
||||
.file_lines
|
||||
.contains(&self.codemap.lookup_line_range(stmt.span)) {
|
||||
.intersects(&self.codemap.lookup_line_range(stmt.span)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user