Format any statement whose span intersects file_lines
This commit is contained in:
parent
603f26d8f1
commit
b6f1b516d9
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ impl<'a> FmtVisitor<'a> {
|
||||||
// FIXME(#434): Move this check to somewhere more central, eg Rewrite.
|
// FIXME(#434): Move this check to somewhere more central, eg Rewrite.
|
||||||
if !self.config
|
if !self.config
|
||||||
.file_lines
|
.file_lines
|
||||||
.contains(&self.codemap.lookup_line_range(stmt.span)) {
|
.intersects(&self.codemap.lookup_line_range(stmt.span)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue