michie
michie copied to clipboard
Avoid cloning for merely the `.get`
Idea: the .get will take a key as reference and return some type (depending on implementation) that will be used as key in the .insert call.
This avoids borrowing a key from the input, which doesn't work in the case where the function consumes the input.