Fix many clippy lints

This commit is contained in:
Speedy_Lex
2026-04-25 21:00:46 +02:00
parent eebd41a187
commit eff610eac6
21 changed files with 131 additions and 164 deletions
+3 -1
View File
@@ -193,7 +193,7 @@ impl VaArg {
let ap_impl = unsafe {
// The double deconstruct is intended
let ptr_to_struct = *(ap as *mut core::ffi::VaList as *mut *mut VaListImpl);
let ptr_to_struct = *(core::ptr::from_mut(ap).cast::<*mut VaListImpl>());
&mut *ptr_to_struct
};
@@ -487,6 +487,7 @@ fn float_exp(mut float: c_double) -> (c_double, isize) {
(float, exp)
}
#[expect(clippy::too_many_arguments)]
fn fmt_float_exp<W: Write>(
w: &mut W,
exp_fmt: char,
@@ -524,6 +525,7 @@ fn fmt_float_exp<W: Write>(
Ok(())
}
#[expect(clippy::too_many_arguments)]
fn fmt_float_normal<W: Write>(
w: &mut W,
trim: bool,