kornelski / dssim

Image similarity comparison simulating human perception (multiscale SSIM in Rust)
https://kornel.ski/dssim
GNU Affero General Public License v3.0
1.07k stars 69 forks source link

Can’t compile with webp[-static] features #116

Open da2x opened 2 years ago

da2x commented 2 years ago
$ rustc -V
rustc 1.58.1 (Fedora 1.58.1-1.fc35)

$ cargo install dssim --features webp
[…]

   Compiling load_image v2.16.2
error[E0615]: attempted to take value of method `opaque` on type `&loader::Loader`
  --> /home/user/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/load_image-2.16.2/src/webp.rs:14:17
   |
14 |         if self.opaque {
   |                 ^^^^^^ method, not a field
   |
help: use parentheses to call the method
   |
14 |         if self.opaque(_) {
   |                       +++

For more information about this error, try `rustc --explain E0615`.
error: failed to compile `dssim v3.2.0`, intermediate artifacts can be found at `/tmp/cargo-installHjA6kC`

Caused by:
  could not compile `load_image` due to previous error