Skip to content

Commit abec9e3

Browse files
Update src/c_string.rs
Co-authored-by: Markus Reiter <me@reitermark.us>
1 parent 5032622 commit abec9e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/c_string.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ impl<const N: usize> CString<N> {
118118
}
119119

120120
/// Converts the [`CString`] to a [`CStr`] slice.
121+
#[inline]
121122
pub fn as_c_str(&self) -> &CStr {
122123
debug_assert!(CStr::from_bytes_with_nul(&self.inner).is_ok());
123124

0 commit comments

Comments
 (0)