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

client: Fix beta clippy issue (unnecessary_cast) #21

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

rbradford
Copy link
Collaborator

warning: casting raw pointers to the same type and constness is unnecessary (*const u8 -> *const u8)
--> src/lib.rs:603:28
|
603 | let cap_data_ptr = cap_data.as_ptr() as *const u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: cap_data.as_ptr()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: #[warn(clippy::unnecessary_cast)] on by default

Signed-off-by: Rob Bradford [email protected]

warning: casting raw pointers to the same type and constness is unnecessary (`*const u8` -> `*const u8`)
   --> src/lib.rs:603:28
    |
603 |         let cap_data_ptr = cap_data.as_ptr() as *const u8;
    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `cap_data.as_ptr()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
    = note: `#[warn(clippy::unnecessary_cast)]` on by default

Signed-off-by: Rob Bradford <[email protected]>
@likebreath likebreath merged commit 352db2e into rust-vmm:main Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants