jkvargas / russimp

Assimp bindings for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UserData expected `*mut u8`, found `*mut i8`

MysteryCoder456 opened this issue · comments

I am trying to use russimp with OpenGL, but when I add it to my project and try to build I get the following error:

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/russimp-3.2.0/src/fs.rs:49:27
   |
49 |                 UserData: user_data,
   |                           ^^^^^^^^^ expected `*mut u8`, found `*mut i8`
   |
   = note: expected raw pointer `*mut u8`
              found raw pointer `*mut i8`

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/russimp-3.2.0/src/fs.rs:91:23
   |
91 |             UserData: user_data,
   |                       ^^^^^^^^^ expected `*mut u8`, found `*mut i8`
   |
   = note: expected raw pointer `*mut u8`
              found raw pointer `*mut i8`

Any help would be greatly appreciated.