qrcode-rust
qrcode-rust copied to clipboard
I can't run the Example "Image generation"
the trait bound Luma<u8>: Element is not satisfied
required because of the requirements on the impl of qrcode::render::Pixel for Luma<u8> rustcE0277
the method build exists for struct Renderer<'_, Luma<u8>>, but its trait bounds were not satisfied
the following trait bounds were not satisfied:
Luma<u8>: qrcode::render::Pixel
<Luma<u8> as qrcode::render::Pixel>::Image = _ rustcE0599
color.rs(217, 1): doesn't satisfy <Luma<u8> as qrcode::render::Pixel>::Image = _
color.rs(217, 1): doesn't satisfy Luma<u8>: qrcode::render::Pixel
Hello
I think you might be using image 0.24.X
This package supports image 0.23.X, some backwards incompatible changes may have been done in the new image version
Got the exact same here.
Had to use image 0.22.0 for it to work. 0.23.0 did not work for me either.