If you get weird #Rust#Lifetime#error's: have you already tried to just remove the lifetime annotations and see what happens? You'll often get much better error messages this way. :ferris:
If this doesn't work and you still can't figure it out: try to not use references and own your values instead.