Can't make this work properly. Can someone help?
https://github.com/leocavalcante/rusty-rocket/blob/master/src/main.rs#L25
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).
Did a lunch break, got this working now Nothing like some rest to the brain.
https://github.com/leocavalcante/rusty-rocket/blob/master/src/main.rs