Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

greq/msg: simplify SnpGuestRequestMsgHdr::get_aad_slice() #400

Merged
merged 1 commit into from
Jul 3, 2024

Commits on Jul 1, 2024

  1. greq/msg: simplify SnpGuestRequestMsgHdr::get_aad_slice()

    Now that the offset_of macro is stable, simply use it to get the
    desired offset for the slice. Simplify also the slice creation by
    simply casting a *const Self to a *const u8 and calling
    slice::from_raw_parts with the adequate size.
    
    Signed-off-by: Carlos López <[email protected]>
    00xc committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    ceaa467 View commit details
    Browse the repository at this point in the history