]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_errors/emitter.rs
Unify order of variables in chained comparison
[rust.git] / 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) {