qrcode-rust icon indicating copy to clipboard operation
qrcode-rust copied to clipboard

I can't run the Example "Image generation"

Open c76d3656e opened this issue 3 years ago • 3 comments

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

c76d3656e avatar Apr 17 '22 14:04 c76d3656e

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

constantoine avatar Apr 22 '22 08:04 constantoine

Got the exact same here.

stephan57160 avatar Jul 05 '22 08:07 stephan57160

Had to use image 0.22.0 for it to work. 0.23.0 did not work for me either.

vcrn avatar Nov 05 '22 22:11 vcrn