Commit 3e526c4
Simplify non-wrapping += and *=
Use this replacement file as described in other recent PRs to replace boilerplate code.
Followed by `cargo fmt --all`
<details>
<summary>replacement file content</summary>
```diff
@@
expression expr_r, expr_l;
@@
-{
- let _rhs = expr_r;
- let _lhs = &mut expr_l;
- *_lhs *= _rhs;
+expr_l *= expr_r;
-}
@@
expression expr_r, expr_l, i, start, end;
@@
for i in start..end
{
- let _rhs = expr_r;
- let _lhs = &mut expr_l;
- *_lhs += _rhs;
+expr_l += expr_r;
}
@@
expression expr_r, expr_l;
@@
-{
- let _rhs = expr_r;
- let _lhs = &mut expr_l;
- *_lhs += _rhs;
+expr_l += expr_r;
-}
```
</details>1 parent 6fae4d3 commit 3e526c4
2 files changed
+5
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1813 | 1813 | | |
1814 | 1814 | | |
1815 | 1815 | | |
1816 | | - | |
| 1816 | + | |
1817 | 1817 | | |
1818 | 1818 | | |
1819 | 1819 | | |
1820 | 1820 | | |
1821 | | - | |
1822 | | - | |
1823 | 1821 | | |
1824 | 1822 | | |
1825 | 1823 | | |
1826 | 1824 | | |
1827 | 1825 | | |
1828 | 1826 | | |
1829 | | - | |
1830 | | - | |
1831 | | - | |
1832 | | - | |
1833 | | - | |
1834 | | - | |
1835 | | - | |
1836 | | - | |
1837 | | - | |
1838 | | - | |
1839 | | - | |
1840 | | - | |
1841 | | - | |
1842 | | - | |
1843 | | - | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
1844 | 1830 | | |
1845 | 1831 | | |
1846 | 1832 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
| 725 | + | |
730 | 726 | | |
731 | 727 | | |
732 | 728 | | |
| |||
0 commit comments