-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
rust-analyzer/crates/syntax/src/ast/operators.rs
Lines 113 to 119 in 90357a9
BinaryOp::Assignment { op } => { | |
f.write_str("=")?; | |
if let Some(op) = op { | |
fmt::Display::fmt(op, f)?; | |
} | |
Ok(()) | |
} |
Isn't the order reversed?
BinaryOp::Assignment { op } => {
if let Some(op) = op {
fmt::Display::fmt(op, f)?;
}
f.write_str("=")?;
Ok(())
}
lnicola
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
lnicola commentedon Aug 8, 2022
I think so. Do you want to file a PR?
atynagano commentedon Aug 8, 2022
I don't know how to do it. If you can, I'll leave it to you.
fprasx commentedon Aug 8, 2022
@rustbot claim
=
#12974Auto merge of #12974 - fprasx:master, r=lnicola