Backport e8f31164b9
error[E0599]: the method `to_image` exists for mutable reference `&mut [RGB<u8>]`, but its trait bounds were not satisfied
--> /wrkdirs/usr/ports/graphics/dssim/work/dssim-3.2.4/cargo-crates/load_image-3.0.1/src/jpeg.rs:39:55
|
39 | PixelFormat::RGB24 => pixels.as_rgb_mut().to_image(profile, width, height, true, meta),
| ^^^^^^^^ method cannot be called on `&mut [RGB<u8>]` due to unsatisfied trait bounds
|
::: /wrkdirs/usr/ports/graphics/dssim/work/dssim-3.2.4/cargo-crates/rgb-0.8.34/src/lib.rs:72:1
|
72 | pub struct RGB<ComponentType> {
| ----------------------------- doesn't satisfy `rgb::RGB<u16>: pixel_format::LcmsPixelFormat`
|
note: trait bound `rgb::RGB<u16>: pixel_format::LcmsPixelFormat` was not satisfied
--> /wrkdirs/usr/ports/graphics/dssim/work/dssim-3.2.4/cargo-crates/load_image-3.0.1/src/convert.rs:68:25
|
66 | impl<T> ToSRGBImage for [T]
| ----------- ---
67 | where T: LcmsPixelFormat + LcmsPixelConversion,
68 | T::Converted: LcmsPixelFormat + Default,
| ^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here
69 | T::ConvertedOpaque: LcmsPixelFormat + Default,
| ^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here
= help: items from traits can only be used if the trait is implemented and in scope
note: `convert::ToSRGBImage` defines an item `to_image`, perhaps you need to implement it
--> /wrkdirs/usr/ports/graphics/dssim/work/dssim-3.2.4/cargo-crates/load_image-3.0.1/src/convert.rs:43:1
|
43 | pub trait ToSRGBImage {
| ^^^^^^^^^^^^^^^^^^^^^
This is the FreeBSD Ports Collection. For an easy to use
WEB-based interface to it, please see:
https://www.FreeBSD.org/ports
For general information on the Ports Collection, please see the
FreeBSD Handbook ports section which is available from:
https://docs.freebsd.org/en/books/handbook/ports/
for the latest official version
or:
The ports(7) manual page (man ports).
These will explain how to use ports and packages.
If you would like to search for a port, you can do so easily by
saying (in /usr/ports):
make search name="<name>"
or:
make search key="<keyword>"
which will generate a list of all ports matching <name> or <keyword>.
make search also supports wildcards, such as:
make search name="gtk*"
For information about contributing to FreeBSD ports, please see the Porter's
Handbook, available at:
https://docs.freebsd.org/en/books/porters-handbook/
NOTE: This tree will GROW significantly in size during normal usage!
The distribution tar files can and do accumulate in /usr/ports/distfiles,
and the individual ports will also use up lots of space in their work
subdirectories unless you remember to "make clean" after you're done
building a given port. /usr/ports/distfiles can also be periodically
cleaned without ill-effect.