Skip to content

Commit

Permalink
Inline SmallCStr::deref
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Mar 4, 2022
1 parent b4bf56c commit ea0a31f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_data_structures/src/small_c_str.rs
Expand Up @@ -62,6 +62,7 @@ impl SmallCStr {
impl Deref for SmallCStr {
type Target = ffi::CStr;

#[inline]
fn deref(&self) -> &ffi::CStr {
self.as_c_str()
}
Expand Down

0 comments on commit ea0a31f

Please sign in to comment.