Formatting

This commit is contained in:
Tobias Decking 2023-02-22 22:19:10 +01:00 committed by GitHub
parent c7404df069
commit 04fe482160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,7 @@ pub unsafe fn compare_bytes(a: *const u8, b: *const u8, n: usize) -> i32 {
c16(a.cast(), b.cast(), n)
}
#[cfg(target_feature="sse2")]
#[cfg(target_feature = "sse2")]
#[inline(always)]
pub unsafe fn c_string_length(s: *const core::ffi::c_char) -> usize {
let mut n: usize;
@ -259,7 +259,7 @@ pub unsafe fn c_string_length(s: *const core::ffi::c_char) -> usize {
// Provided for scenarios like kernel development, where SSE might not
// be available.
#[cfg(not(target_feature="sse2"))]
#[cfg(not(target_feature = "sse2"))]
#[inline(always)]
pub unsafe fn c_string_length(mut s: *const core::ffi::c_char) -> usize {
let mut n = 0;