Inline SmallCStr::deref

This commit is contained in:
Tomasz Miąsko 2022-03-03 00:00:00 +00:00
parent b4bf56cd66
commit ea0a31ff0c

View File

@ -62,6 +62,7 @@ pub fn spilled(&self) -> bool {
impl Deref for SmallCStr {
type Target = ffi::CStr;
#[inline]
fn deref(&self) -> &ffi::CStr {
self.as_c_str()
}