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 crate::view::OperationView;
use crate::{geometry::Operation, view::OperationView};
pub struct TextRenderer {
text_atlas: glyphon::TextAtlas,
@ -91,7 +91,7 @@ impl TextRenderer {
write!(line, "\t")?;
}
write!(line, "{op}")?;
write!(line, "{}", op.label())?;
buffer.lines.push(glyphon::BufferLine::new(
line,