Skip to content

Commit

Permalink
Inline CStr::from_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
KamilaBorowska committed Oct 18, 2021
1 parent 5e02151 commit 86c309c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/ffi/c_str.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 86c309c

Please sign in to comment.