let mut request = String::new();
let mut tmp = String::new();
let mut params = HashMap::new();
//I then have tmp and request vars getting set with format! macro in a for loop
//upon hitting a certain field I'm trying to write those vars into a hashmap with this
params.insert( &tmp, &request );
if I leave off the & it says that I'm trying to pass String and need str and suggests adding &
however, if I add & I then start getting errors about borrowing of these 2 vars throughout my
code that use to work just fine before adding this line.
I'm a little stuck and still trying to get my head wrapped around all the borrowing stuff.