explicit str, rustc 1.34.0 doesn't seem to pick this up otherwise (#3191)

This commit is contained in:
cadwgan0 2020-01-15 07:00:33 -05:00 committed by Antioch Peverell
parent c2026bd686
commit 8568c77d6e

View file

@ -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 {