Skip to content

Commit b9598ed

Browse files
committed
chore: Deprecate ref_str
1 parent 5e01733 commit b9598ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/c.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use crate::error::PointerError;
2020
/// # Errors
2121
///
2222
/// If the C string is not a valid UTF-8 string.
23+
#[deprecated(since = "0.8.1", note = "Use std::ffi::CStr")]
2324
#[inline]
2425
pub unsafe fn ref_str<'a>(string: *const c_char) -> Result<&'a str, PointerError> {
2526
// ATTENTION! 'a lifetime is required, does NOT REMOVE it

0 commit comments

Comments
 (0)