Having a hard time with lifetimes, borrows and cows


#1

Can’t make this work properly. Can someone help?


#2

Don’t convert into a HashMap<String, String> - once you do that, you cannot return a reference to these strings since they’re now owned by your function. Instead, find the access_key param and return the corresponding Cow<'r, str> in the AccessToken (will require storing a Cow there instead of raw string slice).


#3

Did a lunch break, got this working now :sweat_smile: Nothing like some rest to the brain.