Skip to content

Build error on dependency gltf #65

@Nevsden

Description

@Nevsden

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions