]> git.lizzy.rs Git - rust.git/commitdiff
Unify order of variables in chained comparison
authorAnthonyMikh <anthony.mikh@yandex.ru>
Wed, 25 Sep 2019 20:46:33 +0000 (23:46 +0300)
committerGitHub <noreply@github.com>
Wed, 25 Sep 2019 20:46:33 +0000 (23:46 +0300)
src/librustc_errors/emitter.rs

index 61bd4899f3c5455fe8941a161c2a613ad71689a8..362e28661d919f96975545c129082454b47db082 100644 (file)
@@ -125,7 +125,7 @@ fn was_cut_right(&self, line_len: usize) -> bool {
         } 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) {