diff --git a/src/bin/tui/logs.rs b/src/bin/tui/logs.rs index de9b437dc..e42ff675e 100644 --- a/src/bin/tui/logs.rs +++ b/src/bin/tui/logs.rs @@ -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 = LinesIterator::new(&log_message, printer.size.x).collect(); rows.reverse(); // So stack traces are in the right order. for row in rows {