Inline to make OsStr::is_empty zero cost
This commit is contained in:
@@ -104,6 +104,7 @@ impl Buf {
|
||||
self.inner.shrink_to(min_capacity)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn as_slice(&self) -> &Slice {
|
||||
unsafe { mem::transmute(&*self.inner) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user