I'm trying to build a lemmy node from scratch. Unfortunately, I am not knowledgeble in Rust, so I dunno how to fix an error I am getting when attempting to compile pict-rs, the embedded picture store.
Compiling pict-rs v0.4.0
error[E0310]: the parameter type `F` may not live long enough
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pict-rs-0.4.0/src/lib.rs:1219:5
|
1219 | HttpServer::new(move || {
| ^^^^^^^^^^^^^^^
| |
| the parameter type `F` must be valid for the static lifetime...
| ...so that the type `F` will meet its required lifetime bounds
|
help: consider adding an explicit lifetime bound
I've got like ten of these and it results in the compile not completing, and
since I know zero rust, I don't know how to fix. Any advice?