Commit 049fb83
minor: use format!() for placeholder string construction
Replace `String::from("?") + &s` and `String::from("$") + &value` with
`format!()` macro calls. The format macro calculates required capacity
upfront and allocates once, avoiding potential reallocation when the
appended string exceeds the initial small capacity.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 6550ec8 commit 049fb83
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1755 | 1755 | | |
1756 | 1756 | | |
1757 | 1757 | | |
1758 | | - | |
| 1758 | + | |
1759 | 1759 | | |
1760 | 1760 | | |
1761 | 1761 | | |
| |||
1904 | 1904 | | |
1905 | 1905 | | |
1906 | 1906 | | |
1907 | | - | |
| 1907 | + | |
1908 | 1908 | | |
1909 | 1909 | | |
1910 | 1910 | | |
| |||
0 commit comments