bitart: Fix display of unary on top of binary operation
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user