Commit dd9326b
libbpf-cargo: Expose inner Rust "enum" values publicly
With the switch from emitting C enums as Rust enums to mapping them to
Rust structs instead, we no longer allow access to the underlying
integer. That's a bit of a usability snag, because it forces users to
fall back to transmuting constants just to get a hold of the inner
value.
Expose the inner value publicly to make that easier.
Signed-off-by: Daniel Müller <[email protected]>1 parent 7f38370 commit dd9326b
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
| 813 | + | |
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1880 | 1880 | | |
1881 | 1881 | | |
1882 | 1882 | | |
1883 | | - | |
| 1883 | + | |
1884 | 1884 | | |
1885 | 1885 | | |
1886 | 1886 | | |
| |||
2618 | 2618 | | |
2619 | 2619 | | |
2620 | 2620 | | |
2621 | | - | |
| 2621 | + | |
2622 | 2622 | | |
2623 | 2623 | | |
2624 | 2624 | | |
| |||
0 commit comments