Closed Storyyeller closed 7 years ago
I think you are right - I'll add the necessary constraints and see what happens.
I pushed a new version, feel free to close this if the new impls look right to you.
Looks good to me. Thanks for the speedy fix!
P.S. You may want to consider yanking the previous versions if you haven't done so already to reduce the risk that people accidentally depend on them.
I believe the following impls are unsafe
You need to check not only O, but also &T/&mut T. For example, if T is a Cell, this would improperly implement Sync. This can happen either if O contains a mutex that you map() into, or you map() into an unrelated 'static reference.