Skip to content

Commit

Permalink
Merge pull request #72 from dtolnay/assign
Browse files Browse the repository at this point in the history
Fix line placement for field assignment with multiline value
  • Loading branch information
dtolnay committed Apr 15, 2024
2 parents 659fde6 + a6aa390 commit 8e800f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
30 changes: 10 additions & 20 deletions cargo-expand/serde_derive-1.0.137.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ impl Printer {
self.ibox(0);
self.expr(&expr.left);
self.word(" = ");
self.neverbreak();
self.expr(&expr.right);
self.end();
}
Expand Down

0 comments on commit 8e800f6

Please sign in to comment.