3 ms·
with_metadata_of returns a raw pointer, which is not safe to use.
by steveklabnik 3y ago
with_metadata_of returns a raw pointer, which is not safe to use.
- rstuart4133 3y agoThanks for taking the time to point out the obvious to a newbie. Now, that's apparent the point of the article isn't so clear. The point looks to revolve around this line: > Eagle-eyed readers might have noticed that this code has no unsafe. Not even a line. That statement is not really true, as the return type (*T) implies the method is unsafe. Oh well, it was an interesting bug hunt story.