Skip to content

Commit 86c309c

Browse files
Inline CStr::from_ptr
1 parent 5e02151 commit 86c309c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: library/std/src/ffi/c_str.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,7 @@ impl CStr {
11751175
/// }
11761176
/// # }
11771177
/// ```
1178+
#[inline]
11781179
#[must_use]
11791180
#[stable(feature = "rust1", since = "1.0.0")]
11801181
pub unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr {

0 commit comments

Comments
 (0)