Simplify the entry API example, as the &'static str doesn't add value here, and the entry API isn't actually very useful when you have non-Copy owned keys (like String) because you are forced to heap-allocate the String even if the key already exists.
Simplify the entry API example, as the
&'static str
doesn't add value here, and the entry API isn't actually very useful when you have non-Copy owned keys (likeString
) because you are forced to heap-allocate the String even if the key already exists.