You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rust: Move FromBytes and AsBytes traits to a new transmute module
This patch refactors the `FromBytes` and `AsBytes` traits from `types.rs`
into a new `transmute.rs` module.
The traits and their implementations remain unchanged.
- Adds `rust/kernel/transmute.rs` with the definitions of `FromBytes`
and `AsBytes`
- Removes the same trait definitions from `rust/kernel/types.rs`
- Updates `rust/kernel/uaccess.rs` to import `AsBytes` and `FromBytes`
from `transmute.rs`
Suggested-by: Benno Lossin <[email protected]>
Link: Rust-for-Linux#1117
Signed-off-by: Aliet Exposito Garcia <[email protected]>
0 commit comments