- Notifications
You must be signed in to change notification settings - Fork74
Commitae9d019
committed
iui: draw: use mem::MaybeUninit in identity()
The `mem::uninitialized()` function is considered undefined behavior,and is therefore heavily deprecated. Instead, `mem::MaybeUninit` ispreferred.Convert the usage of `mem::uninitialized()` into `mem::MaybeUninit` inthe `Transform::identity()` function to remove this UB.Signed-off-by: Sean Cross <sean@xobs.io>1 parent50e68f9 commitae9d019
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 |
| - | |
24 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
|
0 commit comments
Comments
(0)