Commit 1f43e5d
committed
Revert "can: Make
This reverts commit b2d00d1 and
31eabd5.
Mark the constructor as unsafe again to prevent UB in safe code that assumes the CAN IDs to contain valid data.
This is in line with functions like `from_utf8_unchecked()` from the std library.new_unchecked() safe"1 parent 31eabd5 commit 1f43e5d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments