diff options
| author | Nick Cameron <nrc@ncameron.org> | 2018-10-16 09:01:40 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-16 09:01:40 +1300 |
| commit | bc4414e53ce4e56856c360bf3a5e6c98fe072761 (patch) | |
| tree | 6345e839776d5970ce04c4700c47102a6ce86cb1 /src/utils.rs | |
| parent | 075aa909cd2bcdc603f45e0b65119c6a7e3b2030 (diff) | |
| parent | 7be173eb8c9e043fbe814970c93dc7d98ddc8009 (diff) | |
Merge pull request #3101 from nrc/pair-newline
Simplify multi-lining binop exprs
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/utils.rs b/src/utils.rs index 7ef9254a482..8cc1b974f48 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -326,10 +326,11 @@ pub fn mk_sp(lo: BytePos, hi: BytePos) -> Span { // Return true if the given span does not intersect with file lines. macro_rules! out_of_file_lines_range { ($self:ident, $span:expr) => { - !$self.config.file_lines().is_all() && !$self - .config - .file_lines() - .intersects(&$self.source_map.lookup_line_range($span)) + !$self.config.file_lines().is_all() + && !$self + .config + .file_lines() + .intersects(&$self.source_map.lookup_line_range($span)) }; } |
