Inline CStr::from_ptr

This commit is contained in:
Konrad Borowski 2021-10-18 11:38:51 +02:00
parent 5e02151318
commit 86c309c27f

View file

@ -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 {