Skip to content

Commit

Permalink
explicit str, rustc 1.34.0 doesn't seem to pick this up otherwise (#3191
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cadwgan0 authored and antiochp committed Jan 15, 2020
1 parent c2026bd commit 8568c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/tui/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl View for LogBufferView {
let mut i = 0;
for entry in self.buffer.iter().take(printer.size.y) {
printer.with_color(LogBufferView::color(entry.level), |p| {
let log_message = StyledString::plain(&entry.log);
let log_message = StyledString::plain(entry.log.as_str());
let mut rows: Vec<Row> = LinesIterator::new(&log_message, printer.size.x).collect();
rows.reverse(); // So stack traces are in the right order.
for row in rows {
Expand Down

0 comments on commit 8568c77

Please sign in to comment.