Cykooz / libheif-rs

Safe wrapper to libheif-sys for parsing heif/heic files
MIT License
34 stars 11 forks source link

0.19 fails to build on Windows #11

Closed chadaustin closed 1 year ago

chadaustin commented 1 year ago
error[E0515]: cannot return reference to temporary value
  --> C:\Users\Chad\.cargo\registry\src\github.com-1ecc6299db9ec823\libheif-rs-0.19.0\src\utils.rs:45:26
   |
45 |                 .map(|b| b.to_ne_bytes().iter())
   |                          ---------------^^^^^^^
   |                          |
   |                          returns a reference to data owned by the current function
   |                          temporary value created here
   |
   = help: use `.collect()` to allocate the iterator

For more information about this error, try `rustc --explain E0515`.
error: could not compile `libheif-rs` due to previous error
Cykooz commented 1 year ago

I have fixed this in v0.19.1