Commit 839e89c
authored
Rollup merge of rust-lang#62344 - matklad:simplify-option, r=sfackler
simplify Option::get_or_insert
I am pretty sure that the optimized result will be the same, and it's one `unsafe` less in the stdlib!1 file changed
+1
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
| 780 | + | |
789 | 781 | | |
790 | 782 | | |
791 | 783 | | |
| |||
0 commit comments