fix a rust lint and a clippy lint

This commit is contained in:
auronandace
2026-03-10 12:11:03 +00:00
parent 9340d76a92
commit bd4fb1f660
2 changed files with 7 additions and 8 deletions
+3 -3
View File
@@ -951,7 +951,7 @@ pub(crate) unsafe fn inner_printf<T: c_str::Kind>(
varargs.get(index, &mut ap, Some((arg.fmtkind, arg.intkind)))
} {
VaArg::c_double(i) => i,
VaArg::c_longdouble(i) => unsafe { relibc_ldtod(&i as *const c_longdouble) },
VaArg::c_longdouble(i) => unsafe { relibc_ldtod(&raw const i) },
_ => panic!("this should not be possible"),
};
if float.is_finite() {
@@ -970,7 +970,7 @@ pub(crate) unsafe fn inner_printf<T: c_str::Kind>(
varargs.get(index, &mut ap, Some((arg.fmtkind, arg.intkind)))
} {
VaArg::c_double(i) => i,
VaArg::c_longdouble(i) => unsafe { relibc_ldtod(&i as *const c_longdouble) },
VaArg::c_longdouble(i) => unsafe { relibc_ldtod(&raw const i) },
_ => panic!("this should not be possible"),
};
if float.is_finite() {
@@ -986,7 +986,7 @@ pub(crate) unsafe fn inner_printf<T: c_str::Kind>(
varargs.get(index, &mut ap, Some((arg.fmtkind, arg.intkind)))
} {
VaArg::c_double(i) => i,
VaArg::c_longdouble(i) => unsafe { relibc_ldtod(&i as *const c_longdouble) },
VaArg::c_longdouble(i) => unsafe { relibc_ldtod(&raw const i) },
_ => panic!("this should not be possible"),
};
if float.is_finite() {