Skip to content

Commit

Permalink
Prepare for follow-on change
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Dec 9, 2024
1 parent 2b135fe commit 8723af8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion experiments/2024-12-09/src/render/text.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::fmt::Write;

use crate::ui::OpsUi;

pub struct TextRenderer {
Expand Down Expand Up @@ -83,7 +85,8 @@ impl TextRenderer {
attrs = attrs.color(glyphon::Color::rgb(0, 127, 0));
}

let line = format!("{op}");
let mut line = String::new();
write!(line, "{op}")?;

buffer.lines.push(glyphon::BufferLine::new(
line,
Expand Down

0 comments on commit 8723af8

Please sign in to comment.