Skip to content

Commit 7fda174

Browse files
fix format
1 parent 797b38e commit 7fda174

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/core/src/ffi/c_str.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -888,9 +888,7 @@ mod verify {
888888
kani::assume(slice.len() > 0 && slice[slice.len() - 1] == 0);
889889
kani::assume(forall!(|i in (0,len-1)| unsafe {*slice.as_ptr().wrapping_add(i)} != 0));
890890
let ptr = slice.as_ptr() as *const c_char;
891-
unsafe {
892-
CStr::from_ptr(ptr)
893-
}
891+
unsafe { CStr::from_ptr(ptr) }
894892
}
895893

896894
// pub const fn from_bytes_until_nul(bytes: &[u8]) -> Result<&CStr, FromBytesUntilNulError>

0 commit comments

Comments
 (0)