chris-morgan / anymap

A safe and convenient store for one value of each type
Other
326 stars 42 forks source link

Why does `anymap::Entry` require a Clone bound? #26

Closed Kimundi closed 8 years ago

Kimundi commented 8 years ago

anymap::Entry::or_insert and anymap::Entry::or_insert_with require a Clone bound on the element to be inserted.

It is unclear from both the docs and the source why that is the case, or if its intentional.