Inline SmallCStr::deref
This commit is contained in:
parent
b4bf56cd66
commit
ea0a31ff0c
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ impl SmallCStr {
|
||||||
impl Deref for SmallCStr {
|
impl Deref for SmallCStr {
|
||||||
type Target = ffi::CStr;
|
type Target = ffi::CStr;
|
||||||
|
|
||||||
|
#[inline]
|
||||||
fn deref(&self) -> &ffi::CStr {
|
fn deref(&self) -> &ffi::CStr {
|
||||||
self.as_c_str()
|
self.as_c_str()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue