mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
cargo fmt
This commit is contained in:
@@ -40,14 +40,8 @@ pub(crate) unsafe fn strncasecmp(
|
||||
|
||||
// s1 and s2 might not be null terminated.
|
||||
|
||||
let s1_slice = std::slice::from_raw_parts(
|
||||
s1 as *const u8,
|
||||
strnlen(s1 as *const i8, n),
|
||||
);
|
||||
let s2_slice = std::slice::from_raw_parts(
|
||||
s2 as *const u8,
|
||||
strnlen(s2 as *const i8, n),
|
||||
);
|
||||
let s1_slice = std::slice::from_raw_parts(s1 as *const u8, strnlen(s1 as *const i8, n));
|
||||
let s2_slice = std::slice::from_raw_parts(s2 as *const u8, strnlen(s2 as *const i8, n));
|
||||
|
||||
let s1 = std::ffi::CStr::from_bytes_with_nul_unchecked(s1_slice)
|
||||
.to_string_lossy()
|
||||
|
||||
Reference in New Issue
Block a user