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