• M
    Suggest direct raw-pointer dereference · 18f41e54
    Michal 'vorner' Vaner 提交于
    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.
    18f41e54
ptr.rs 103.4 KB