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

Casting to more strictly aligned pointer types #26

Open
hatzel opened this issue Jul 22, 2018 · 0 comments
Open

Casting to more strictly aligned pointer types #26

hatzel opened this issue Jul 22, 2018 · 0 comments

Comments

@hatzel
Copy link
Member

hatzel commented Jul 22, 2018

These clippy lints need looking into:

error: casting from `*mut ffmpeg::AVDictionary` to a more-strictly-aligned pointer (`*mut worker::util::Dictionary`)
  --> src/worker/mediafile.rs:77:29
   |
77 |         let d = dict_to_map(av.metadata as *mut Dictionary);
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: #[deny(cast_ptr_alignment)] on by default
   = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#cast_ptr_alignment

error: casting from `*mut ffmpeg::AVDictionary` to a more-strictly-aligned pointer (`*mut worker::util::Dictionary`)
   --> src/worker/mediafile.rs:252:34
    |
252 |             let md = dict_to_map((*self.ctx).metadata as *mut Dictionary);
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#cast_ptr_alignment

error: aborting due to 2 previous errors
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

No branches or pull requests

1 participant