Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suggest direct raw-pointer dereference
People often come looking for some kind of `as_ref_unchecked` method on raw pointers that would give them `&T` and not `Option<&T>` when they are sure the pointer is not NULL. There's no such method, but taking a reference of the dereferenced pointer accomplishes the same thing. Therefore, suggest using that, at the `as_ref` site ‒ it's a place people are likely going to look into.
- Loading branch information