Cargo fmt

This commit is contained in:
Speedy_Lex
2026-05-06 23:54:36 +02:00
parent eff610eac6
commit 2d4ab41de5
7 changed files with 29 additions and 21 deletions
+4 -3
View File
@@ -256,7 +256,7 @@ pub extern "C" fn clock() -> clock_t {
}
let ts = unsafe { ts.assume_init() };
#[expect(clippy::unnecessary_cast, reason="needed on i586")]
#[expect(clippy::unnecessary_cast, reason = "needed on i586")]
let clocks =
ts.tv_sec * CLOCKS_PER_SEC as i64 + (ts.tv_nsec / (1_000_000_000 / CLOCKS_PER_SEC)) as i64;
clock_t::try_from(clocks).unwrap_or(-1)
@@ -851,8 +851,9 @@ unsafe fn set_timezone(
match dst {
Some(dst) => {
guard.1 =
Some(CString::new(dst.offset().abbreviation().expect("Wrong timezone")).unwrap());
guard.1 = Some(
CString::new(dst.offset().abbreviation().expect("Wrong timezone")).unwrap(),
);
tzname.0[1] = guard.1.as_ref().unwrap().as_ptr().cast_mut();
daylight = 1;
}