diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-07-27 13:20:13 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-08-07 10:24:27 +0200 |
| commit | 44d32d441342aac1eb802c4379aa4eb324c90679 (patch) | |
| tree | 9b6ccae638327f9e4f875a08b19e30d1ff0df8a6 /src/librustc_errors | |
| parent | 11a902431b8e66da8486b3b9a2d8527746c6ab1a (diff) | |
| download | rust-44d32d441342aac1eb802c4379aa4eb324c90679.tar.gz rust-44d32d441342aac1eb802c4379aa4eb324c90679.zip | |
Avoid unnecessary pattern matching against Option and Result
Diffstat (limited to 'src/librustc_errors')
| -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 09295e2c7ff..6b1298750fb 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -1295,7 +1295,7 @@ impl EmitterWriter { } // if we elided some lines, add an ellipsis - if let Some(_) = lines.next() { + if lines.next().is_some() { buffer.puts(row_num, max_line_num_len - 1, "...", Style::LineNumber); } else if !show_underline { draw_col_separator_no_space(&mut buffer, row_num, max_line_num_len + 1); |
