Format any statement whose span intersects file_lines

This commit is contained in:
Jonathan Behrens 2017-03-29 01:33:14 -04:00
parent 603f26d8f1
commit b6f1b516d9

View File

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