diff options
| author | Konrad Borowski <konrad@borowski.pw> | 2021-10-18 11:38:51 +0200 |
|---|---|---|
| committer | Konrad Borowski <konrad@borowski.pw> | 2021-10-18 11:38:51 +0200 |
| commit | 86c309c27f4632c19a518d6555add44145c2ddac (patch) | |
| tree | 40f68695a3d594899db0ae7d50e6443261baa2b5 | |
| parent | 5e02151318ddd431aea6d58e23948246c1446044 (diff) | |
| download | rust-86c309c27f4632c19a518d6555add44145c2ddac.tar.gz rust-86c309c27f4632c19a518d6555add44145c2ddac.zip | |
Inline CStr::from_ptr
| -rw-r--r-- | library/std/src/ffi/c_str.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/ffi/c_str.rs b/library/std/src/ffi/c_str.rs index 6827d3a8d24..52ee2e801ff 100644 --- a/library/std/src/ffi/c_str.rs +++ b/library/std/src/ffi/c_str.rs @@ -1175,6 +1175,7 @@ impl CStr { /// } /// # } /// ``` + #[inline] #[must_use] #[stable(feature = "rust1", since = "1.0.0")] pub unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr { |
