-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hi,
total noob here! I'm getting this error while compiling. Can anyone help?
error[E0308]: mismatched types
--> src/qrcode.rs:31:39
|
31 | let barcodes = decoder.decode(&image::DynamicImage::ImageRgb8(
| ________________________________------_^
| | |
| | arguments to this method are incorrect
32 | | ImageBuffer::from_raw(frame_img.width(), frame_img.height(), raw_img.to_owned())
33 | | .expect("Freshly exported image must be valid"),
34 | | ));
| |_________^ expected `image::dynimage::DynamicImage`, found `DynamicImage`
|
= note: `DynamicImage` and `image::dynimage::DynamicImage` have similar names, but are actually distinct types
note: `DynamicImage` is defined in crate `image`
--> /Users/teo/.cargo/registry/src/github.com-1ecc6299db9ec823/image-0.23.14/./src/dynimage.rs:43:1
|
43 | pub enum DynamicImage {
| ^^^^^^^^^^^^^^^^^^^^^
note: `image::dynimage::DynamicImage` is defined in crate `image`
--> /Users/teo/.cargo/registry/src/github.com-1ecc6299db9ec823/image-0.24.6/./src/dynimage.rs:57:1
|
57 | pub enum DynamicImage {
| ^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `image` are being used?
note: method defined here
--> /Users/teo/.cargo/registry/src/github.com-1ecc6299db9ec823/bardecoder-0.4.1/src/decoder.rs:26:12
|
26 | pub fn decode(&self, source: &IMG) -> Vec<Result<RESULT, Error>> {
| ^^^^^^
For more information about this error, try `rustc --explain E0308`.
error: could not compile `hyperbacked` due to previous error
Metadata
Metadata
Assignees
Labels
No labels