Closed jkoking closed 2 years ago
Compiling speech-dispatcher v0.15.1 error[E0308]: mismatched types --> /home/jacob/.cargo/registry/src/github.com-1ecc6299db9ec823/speech-dispatcher-0.15.1/src/lib.rs:273:36 | 273 | (*c).callback_begin = Some(cb); | ---- ^^ expected `u64`, found `usize` | | | arguments to this enum variant are incorrect | = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _)` found fn item `unsafe extern "C" fn(usize, usize, _) {cb}` note: tuple variant defined here --> /home/jacob/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:526:5 | 526 | Some(#[stable(feature = "rust1", since = "1.0.0")] T), | ^^^^ error[E0308]: mismatched types --> /home/jacob/.cargo/registry/src/github.com-1ecc6299db9ec823/speech-dispatcher-0.15.1/src/lib.rs:274:34 | 274 | (*c).callback_end = Some(cb); | ---- ^^ expected `u64`, found `usize` | | | arguments to this enum variant are incorrect | = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _)` found fn item `unsafe extern "C" fn(usize, usize, _) {cb}` note: tuple variant defined here --> /home/jacob/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:526:5 | 526 | Some(#[stable(feature = "rust1", since = "1.0.0")] T), | ^^^^ error[E0308]: mismatched types --> /home/jacob/.cargo/registry/src/github.com-1ecc6299db9ec823/speech-dispatcher-0.15.1/src/lib.rs:275:37 | 275 | (*c).callback_cancel = Some(cb); | ---- ^^ expected `u64`, found `usize` | | | arguments to this enum variant are incorrect | = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _)` found fn item `unsafe extern "C" fn(usize, usize, _) {cb}` note: tuple variant defined here --> /home/jacob/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:526:5 | 526 | Some(#[stable(feature = "rust1", since = "1.0.0")] T), | ^^^^ error[E0308]: mismatched types --> /home/jacob/.cargo/registry/src/github.com-1ecc6299db9ec823/speech-dispatcher-0.15.1/src/lib.rs:276:36 | 276 | (*c).callback_pause = Some(cb); | ---- ^^ expected `u64`, found `usize` | | | arguments to this enum variant are incorrect | = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _)` found fn item `unsafe extern "C" fn(usize, usize, _) {cb}` note: tuple variant defined here --> /home/jacob/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:526:5 | 526 | Some(#[stable(feature = "rust1", since = "1.0.0")] T), | ^^^^ error[E0308]: mismatched types --> /home/jacob/.cargo/registry/src/github.com-1ecc6299db9ec823/speech-dispatcher-0.15.1/src/lib.rs:277:37 | 277 | (*c).callback_resume = Some(cb); | ---- ^^ expected `u64`, found `usize` | | | arguments to this enum variant are incorrect | = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _)` found fn item `unsafe extern "C" fn(usize, usize, _) {cb}` note: tuple variant defined here --> /home/jacob/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:526:5 | 526 | Some(#[stable(feature = "rust1", since = "1.0.0")] T), | ^^^^ error[E0308]: mismatched types --> /home/jacob/.cargo/registry/src/github.com-1ecc6299db9ec823/speech-dispatcher-0.15.1/src/lib.rs:278:33 | 278 | (*c).callback_im = Some(cb_im); | ---- ^^^^^ expected `u64`, found `usize` | | | arguments to this enum variant are incorrect | = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _, _)` found fn item `unsafe extern "C" fn(usize, usize, _, _) {cb_im}` note: tuple variant defined here --> /home/jacob/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:526:5 | 526 | Some(#[stable(feature = "rust1", since = "1.0.0")] T), | ^^^^ error: aborting due to 6 previous errors For more information about this error, try `rustc --explain E0308`. error: could not compile `speech-dispatcher` due to 7 previous errors
Debian: sid/unstable
speech-dispatcher: 0.11.3
https://gitlab.com/ndarilek/speech-dispatcher-rs/-/issues/7
Started working after I deleted my target folder and cargo.lock
Debian: sid/unstable
speech-dispatcher: 0.11.3
https://gitlab.com/ndarilek/speech-dispatcher-rs/-/issues/7