mark raw_vec::ptr with inline
This commit is contained in:
parent
5fab31e5dd
commit
88d1f31a90
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user