Skip to content

Commit

Permalink
mark raw_vec::ptr with inline
Browse files Browse the repository at this point in the history
  • Loading branch information
andjo403 committed Nov 16, 2020
1 parent 5fab31e commit 88d1f31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/alloc/src/raw_vec.rs
Expand Up @@ -220,6 +220,7 @@ impl<T, A: AllocRef> RawVec<T, A> {
/// Gets a raw pointer to the start of the allocation. Note that this is
/// `Unique::dangling()` if `capacity == 0` or `T` is zero-sized. In the former case, you must
/// be careful.
#[inline]
pub fn ptr(&self) -> *mut T {
self.ptr.as_ptr()
}
Expand Down

0 comments on commit 88d1f31

Please sign in to comment.