Commit 9d908ec
authored
[stdlib] Removes redundant buffer zeroing in IndexPath initialiser by using `init(unsafeUninitializedCapacity:initializingWith:) (swiftlang#31122)
* Remove redundant buffer zeroing in IndexPath initializer
* Use switch instead of multibranch if
* Rename buf back into buffer to make diff clearer1 parent 3cd4258 commit 9d908ec
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
| 621 | + | |
621 | 622 | | |
622 | | - | |
| 623 | + | |
623 | 624 | | |
624 | | - | |
| 625 | + | |
625 | 626 | | |
626 | | - | |
627 | | - | |
628 | | - | |
| 627 | + | |
| 628 | + | |
629 | 629 | | |
| 630 | + | |
630 | 631 | | |
631 | 632 | | |
632 | 633 | | |
| |||
0 commit comments