silence cast_lossless clippy lint from triggering inside macros

This commit is contained in:
auronandace
2026-06-11 09:42:47 +01:00
parent c7c5ab649d
commit 965941564d
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -1473,6 +1473,7 @@ pub unsafe fn convert_integer(s: *const c_char, base: c_int) -> Option<(c_ulong,
}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtod.html>.
#[expect(clippy::cast_lossless)] // not all users of `strto_float_impl!` are lossless
#[unsafe(no_mangle)]
pub unsafe extern "C" fn strtod(s: *const c_char, endptr: *mut *mut c_char) -> c_double {
strto_float_impl!(c_double, s, endptr)