Prepare to lift fmt::Display requirement

This commit is contained in:
Hanno Braun 2025-01-17 20:00:31 +01:00
parent 183d834b3d
commit cb165bbd81

View File

@ -1,6 +1,6 @@
use std::fmt::Write; use std::fmt::Write;
use crate::view::OperationView; use crate::{geometry::Operation, view::OperationView};
pub struct TextRenderer { pub struct TextRenderer {
text_atlas: glyphon::TextAtlas, text_atlas: glyphon::TextAtlas,
@ -91,7 +91,7 @@ impl TextRenderer {
write!(line, "\t")?; write!(line, "\t")?;
} }
write!(line, "{op}")?; write!(line, "{}", op.label())?;
buffer.lines.push(glyphon::BufferLine::new( buffer.lines.push(glyphon::BufferLine::new(
line, line,