When trying to install the gltf-viewer with cargo install gltf-viewer I got the following error.
I already tried to find similar problems by browsing issues within this project and the dependency gltf but could not find anything.
The error looks as follows:
....
Compiling gltf v0.11.3
error[E0597]: `buf` does not live long enough
--> C:\Users\linden\.cargo\registry\src\github.com-1ecc6299db9ec823\gltf-0.11.3\src\binary.rs:225:35
|
119 | impl<'a> Glb<'a> {
| -- lifetime `'a` defined here
...
225 | Self::from_v2(&buf)
| --------------^^^^-
| | |
| | borrowed value does not live long enough
| argument requires that `buf` is borrowed for `'a`
...
233 | }
| - `buf` dropped here while still borrowed
error: aborting due to previous error
When trying to install the
gltf-viewer
withcargo install gltf-viewer
I got the following error. I already tried to find similar problems by browsing issues within this project and the dependencygltf
but could not find anything.The error looks as follows: