diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-03-03 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-03-04 16:57:34 +0100 |
| commit | ea0a31ff0c19c14583239848a7737e453aef3cee (patch) | |
| tree | e5b61bac5fb0ed52eb3f3a5bdcb74e7bc3bc8ba4 /compiler/rustc_data_structures | |
| parent | b4bf56cd66ca83e908fd43bde4c627f94b2a8a9f (diff) | |
| download | rust-ea0a31ff0c19c14583239848a7737e453aef3cee.tar.gz rust-ea0a31ff0c19c14583239848a7737e453aef3cee.zip | |
Inline SmallCStr::deref
Diffstat (limited to 'compiler/rustc_data_structures')
| -rw-r--r-- | compiler/rustc_data_structures/src/small_c_str.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/small_c_str.rs b/compiler/rustc_data_structures/src/small_c_str.rs index cd902524562..3a8ab8ff991 100644 --- a/compiler/rustc_data_structures/src/small_c_str.rs +++ b/compiler/rustc_data_structures/src/small_c_str.rs @@ -62,6 +62,7 @@ impl SmallCStr { impl Deref for SmallCStr { type Target = ffi::CStr; + #[inline] fn deref(&self) -> &ffi::CStr { self.as_c_str() } |
