let l = match result_map.get("AOA").unwrap().get(key) {
Some(val) => val,
None => {
&Vec::new()
},
};
result_map
is a &HashMap<String, HashMap<String, Vec>.
When the key is not in the 2nd map, it should return empty Vec. (I don't need to insert it on the map)
But compiler said "temporary value dropped while borrowed".
How could I fix this? Any help would be appreciated.