Update how shape is rendered in list

This commit is contained in:
Hanno Braun 2024-12-11 21:08:02 +01:00
parent ee0e50b5c7
commit 7257090783

View File

@ -53,11 +53,7 @@ impl Shape {
impl fmt::Display for Shape {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
if let Some(op) = self.operations.last() {
op.fmt(f)
} else {
write!(f, "empty operations log")
}
write!(f, "shape")
}
}