Skip to content

Commit c897175

Browse files
committed
ngx_str_t::to_str is not unsafe
1 parent 9d0cee9 commit c897175

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

nginx-sys/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ impl ngx_str_t {
111111

112112
/// Convert the nginx string to a string slice (`&str`).
113113
///
114-
/// # Safety
115-
/// This function is marked as unsafe because it involves raw pointer manipulation.
116-
/// It assumes that the underlying `data` pointer is valid and points to a valid UTF-8 encoded string.
117-
///
118114
/// # Panics
119115
/// This function panics if the `ngx_str_t` is not valid UTF-8.
120116
///

0 commit comments

Comments
 (0)