bitart: Fix display of unary on top of binary operation

This commit is contained in:
Juergen Stuber
2026-03-16 08:34:03 +01:00
parent 889ad71c62
commit a2084c60fb

View File

@@ -99,7 +99,7 @@ impl UnaryOperation {
}
impl fmt::Display for UnaryOperation {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}{}", self.operator, self.operand)
write!(f, "{}({})", self.operator, self.operand)
}
}