asking for rust help (topics: lifetimes, async/reqwest), please boost

@schrottkatze@treehouse.systems

Content warning: asking for rust help (topics: lifetimes, async/reqwest), please boost

im admitting defeat.

could someone pls just. help me and tell me what's going on here and potentially how to fix it?

what i know: this worked a while ago, and now it doesn't compile anymore.

attached is a screenshot of the output of cargo build in my version

what im doing is trying to get typst-lsp working on typst 0.15.1 (and updating many other deps as well, with the aim of later probably fully rewriting things one-by-one)

original repo (compiles but is years outdated): github.com/nvarner/typst-lsp
mine: codeberg.org/schrottkatze/typs

the relevant file (the erroring impl block is also attached): codeberg.org/schrottkatze/typs

edit: solved and fix by @fogti merged <3

i still dont get why the old version worked and the new one didnt tho lmao