Skip to content

Commit ea0a31f

Browse files
committed
Inline SmallCStr::deref
1 parent b4bf56c commit ea0a31f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_data_structures/src/small_c_str.rs

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ impl SmallCStr {
6262
impl Deref for SmallCStr {
6363
type Target = ffi::CStr;
6464

65+
#[inline]
6566
fn deref(&self) -> &ffi::CStr {
6667
self.as_c_str()
6768
}

0 commit comments

Comments
 (0)