Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upWrap pointer value in ManuallyDrop instead of Option #18
Comments
pushed a commit
that referenced
this issue
Nov 13, 2018
This comment has been minimized.
This comment has been minimized.
|
Fixed by c133e7e. |
zslayton
closed this
Nov 13, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zslayton commentedNov 11, 2018
We can eliminate the overhead of constantly having to check whether the contained value has been
detach()ed by:ManuallyDropinstead ofOptiondetach()to completely deconstruct the value without relying onDropbeing called later.As seen in #11, this will grant a modest speed increase without hurting ergonomics.