Commit d563de1
committed
Auto merge of #501 - saethlin:less-unchecked, r=Amanieu
Use a bit less NonNull::new_unchecked
Using `NonNull::cast` instead of `NonNull::new_unchecked` is a bit less unsafe code, and it may provide a small improvement to compile times since rust-lang/rust#1205941 file changed
+3
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
923 | | - | |
924 | | - | |
| 922 | + | |
925 | 923 | | |
926 | 924 | | |
927 | 925 | | |
| |||
938 | 936 | | |
939 | 937 | | |
940 | 938 | | |
941 | | - | |
| 939 | + | |
942 | 940 | | |
943 | 941 | | |
944 | 942 | | |
| |||
2595 | 2593 | | |
2596 | 2594 | | |
2597 | 2595 | | |
2598 | | - | |
2599 | | - | |
2600 | | - | |
2601 | | - | |
| 2596 | + | |
2602 | 2597 | | |
2603 | 2598 | | |
2604 | 2599 | | |
| |||
0 commit comments