diff options
| author | AnthonyMikh <anthony.mikh@yandex.ru> | 2019-09-25 23:46:33 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-25 23:46:33 +0300 |
| commit | 9b447e2f9fb9b0d3366de90b2de72541b195e99d (patch) | |
| tree | 63d35fe65e41c796000fcdda09b889c12632666f | |
| parent | aef169b4e637fe417f05fa50450b90e403023a5f (diff) | |
| download | rust-9b447e2f9fb9b0d3366de90b2de72541b195e99d.tar.gz rust-9b447e2f9fb9b0d3366de90b2de72541b195e99d.zip | |
Unify order of variables in chained comparison
| -rw-r--r-- | src/librustc_errors/emitter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index 61bd4899f3c..362e28661d9 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -125,7 +125,7 @@ impl Margin { } else { self.computed_right }; - right < line_len && line_len > self.computed_left + self.column_width + right < line_len && self.computed_left + self.column_width < line_len } fn compute(&mut self, max_line_len: usize) { |
