diff options
| author | fprasx <felix725@gmail.com> | 2022-08-08 11:05:18 -0400 |
|---|---|---|
| committer | fprasx <felix725@gmail.com> | 2022-08-08 11:05:18 -0400 |
| commit | e39918f553d7dd5fb5afd6517f80d3e35290c4d2 (patch) | |
| tree | 8ed05e37318c6ca264b3b17e2ee010941776d74d | |
| parent | 49700e46366bfe7958204877b4edcf74987ec508 (diff) | |
| download | rust-e39918f553d7dd5fb5afd6517f80d3e35290c4d2.tar.gz rust-e39918f553d7dd5fb5afd6517f80d3e35290c4d2.zip | |
Corrected order of printing op and `=`
| -rw-r--r-- | crates/syntax/src/ast/operators.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/ast/operators.rs b/crates/syntax/src/ast/operators.rs index a687ba0b77a..8f7b3fb6008 100644 --- a/crates/syntax/src/ast/operators.rs +++ b/crates/syntax/src/ast/operators.rs @@ -111,10 +111,10 @@ impl fmt::Display for BinaryOp { BinaryOp::ArithOp(op) => fmt::Display::fmt(op, f), BinaryOp::CmpOp(op) => fmt::Display::fmt(op, f), BinaryOp::Assignment { op } => { - f.write_str("=")?; if let Some(op) = op { fmt::Display::fmt(op, f)?; } + f.write_str("=")?; Ok(()) } } |
