michie icon indicating copy to clipboard operation
michie copied to clipboard

Avoid cloning for merely the `.get`

Open ar4s-eth opened this issue 3 years ago • 1 comments

ar4s-eth avatar Jun 08 '22 13:06 ar4s-eth

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.

mightyiam avatar Jul 10 '22 07:07 mightyiam